How to get the current language/locale in ts

Hi guys,

how do I get the current language/locale in ts?

Thanks, greetings!

Hi,

I have this:
language = ${Array.first(node.context.dimensions.language)}

Works great in my projects, don’t know if that is considered “best practice”

3 Likes