Libgdx i18ln with ios-moe

Hey everyone,

I wonder what I have to do to get localisation working with ios-moe in libgdx. I set up my i18ln bundle with different languages. In Android everything works as expected on ios I always get english as language.

Expected: It should use language from my device.

Edit: Locale.getDefault().toString() is always en_US even on my german setted ipad

Hi!

Please use ios get current device language.

NSLocale nsLocale = NSLocale.autoupdatingCurrentLocale();
String language = nsLocale.objectForKey(Foundation.NSLocaleLanguageCode()).toString();

Best Regards,
Roland

Thx Roland, this works as expected and returns de. Nevertheless libgdx should determinate the language automatically. For now I can read out the locale like that and just force to use it.