Home > Back-end >  Locale.currentlocale not getting expected result?
Locale.currentlocale not getting expected result?

Time:04-19

As i know Locale.currentLocale returns locale details in setting like language and region in mobile settings

But in my case I have selected English language and region United States

Still current locale returns region code "CN", expected one is "US"

Not sure what I am missing

Thanks in advance for your help!!!

CodePudding user response:

But in my case I have selected English language and region United States

I think you have selected it by your develop device .

However, you may fix the language and region in your Xcode which ignore the actual Settings in your device.

Product -> Edit Scheme -> Run -> Options -> App Region

Please, go and check the Scheme in your Xcode.

  • Related