SetCurrentLanguageAndLocale always set engilsh loclization

Hi,

We made setup of localization via localization dash board and it works when preview language is enabled

In the game menus we are calling SetCurrentLanguageAndLocale to change language but it always set English despites GetCurrentLanguage, GetCurrentLocale, GetCurrentCulture return newsly set code name of language.

What can be missed in the setup to make SetCurrentLanguageAndLocale workable as expected?

By my experience the SetCurrentLanguageAndLocale can work weird in editor, especially considering Editor Language && Preview Game Language settings somewhere in the editor settings.

To make sure the function doesn’t work as expected, try launching game as Standalone Game:


Here the editor wont mess with language settings, so if it works there, it should work in packaged build.

And if it isn’t works here, then there a few other things to check like “whether the translation texts were compiled”, “make sure you don’t call SetLocale(english) in another place”, etc

1 Like

Seems in standalone build it works but not work in PIE mode.
But also seems localization is missed in cooked build, more likely localization files were not cooked. Still don’t know why.

I missed part to set which languages should be packed in project settings.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.