How to set the language to the device language on iOS device automatically?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By alexzheng

My project has English and Chinese support, on android device, it can load the device language automatically.
But on iOS, it always load the English even when I set the device language to Chinese. And the OS.get_locale() return “en_CN”.

I checked the engine source code, it call [[NSLocale currentLocale] localeIdentifier]; to get the locale, should not call [[NSLocale preferredLanguages] objectAtIndex:0] instead to get the current device language?

:bust_in_silhouette: Reply From: alexzheng

Can anybody help me?

I’m having the same problem, did you figure out the solution ?

tidanneels | 2020-02-17 16:50

:bust_in_silhouette: Reply From: huehue-tangerine

I opened an issue on godot github:

In my case: en_BR