We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I use the Simulator's Settings app to set my language to English (UK), then the .GlobalPreferences.plist contains the following:
.GlobalPreferences.plist
<key>AppleLanguages</key> <array> <string>en-GB</string> </array>
The NSLocale.isoLanguageCodes array, doesn't include this value (shown below), therefore it isn't possible to select UK English in ControlRoom.
NSLocale.isoLanguageCodes
let english = NSLocale.isoLanguageCodes.filter { $0.hasPrefix("en") } print(english) // ["en", "enm"]
I thought about just injecting this value into the .isoLanguageCodes array, however this presents a further problem:
.isoLanguageCodes
let enGB = NSLocale.current.localizedString(forLanguageCode: "en-GB") print(enGB ?? "Unknown") // English, not English (UK)
I wonder if this does imply there is a better option for generating the drop down list of languages?
As a side note, I was surprised by the inclusion of Klingon (tlh)...
The text was updated successfully, but these errors were encountered:
In order to do this, just change the locale
Sorry, something went wrong.
No branches or pull requests
If I use the Simulator's Settings app to set my language to English (UK), then the
.GlobalPreferences.plist
contains the following:The
NSLocale.isoLanguageCodes
array, doesn't include this value (shown below), therefore it isn't possible to select UK English in ControlRoom.I thought about just injecting this value into the
.isoLanguageCodes
array, however this presents a further problem:I wonder if this does imply there is a better option for generating the drop down list of languages?
As a side note, I was surprised by the inclusion of Klingon (tlh)...
The text was updated successfully, but these errors were encountered: