What does 'system.getPreference("locale","country")' return?

Quick question:

Does it return the country that the user is currently located in or the country that their phones setting is set to?

For example, If I take my British phone to France, will it return GB (Great Britain) or FR (France)?

You have to include the local’s in your build.settings that you are going to support.  Then it depends on if the phone has been put into a country’s local.   I would expect it to return “en” or “fr”.

Add something like:

         CFBundleLocalizations =          {             "English",             "French",             "German",             "Italian",             "Spanish",             "Hebrew",             "Hindi",             "Chinese",             "Portugese"          },

To the plist table.

Cheers Rob :slight_smile:

You have to include the local’s in your build.settings that you are going to support.  Then it depends on if the phone has been put into a country’s local.   I would expect it to return “en” or “fr”.

Add something like:

         CFBundleLocalizations =          {             "English",             "French",             "German",             "Italian",             "Spanish",             "Hebrew",             "Hindi",             "Chinese",             "Portugese"          },

To the plist table.

Cheers Rob :slight_smile: