2

If you are using iOS >= 12 and set device language and region to France (fr_FR) Device settings IMG and fetch current locale from the code:

[NSLocale currentLocale]

or

[[NSLocale autoupdatingCurrentLocale] localeIdentifier]

result will be en_FR.

Keep in mind that app has localization for France Localizable.strings IMG and info.plist contains

<key>CFBundleLocalizations</key>
<array>
    <string>en</string>
    <string>fr</string>
    <string>it</string>
    <string>de</string>
</array>

Why is this happening? Did I miss something? Same approach is working on iOS < 12.

ndekic
  • 21
  • 3
  • I suggest submitting a bug report to Apple. – EmilioPelaez Dec 10 '18 at 15:34
  • locale identifier is a combination of two things: [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) __language__ code, and an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) __region__ code, in you case `en_FR` says the language is English but the region code is France – which is a totally valid localisation information, there is no bug to be reported. – holex Dec 11 '18 at 14:01
  • Solved with https://stackoverflow.com/a/14357315/5292385 – ndekic Dec 11 '18 at 15:11

0 Answers0