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
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.