1

I've been looking at the methods on the SiteLocalization class in DXA. I'd like to get the language of each site but getLanguage() returns null. This doesn't surprise me much, because I haven't configured the language anywhere. How can I use this feature?

1

1 Answer 1

3

The Language inside the Localization object is populated from the following Component:

\DXA 100 Master\Building Blocks\Settings\Core\Site Manager\Localization 

Once set, do a Republish Settings + Admin/Refresh (or restart the app).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.