How do I get current language from a Content or Site?

I’m testing out Localization in 5.2. It’s really good =)

But I can’t use portal.getContent, portal.getSite or portal.getComponent to get any data about which language is set on the site (or content). Had to create a config-setting on my Parts instead that sets language and then send that setting to my Thymeleaf and use it in my portal.localize-calls.

Any way to get the current site (or content) locale in 5.2? Or will that come in 6.0?

Hi…
I’ve just scheduled a fix for this in 5.3 which must be released to facilitate 6.0 upgrade. Except from very few bug fixes 5.3 will only contain this export improvement.

1 Like