ReactNativeLocalization: Wrong language set on iOS 11 Beta
Hello!
I have two languages in my app en and de:
import LocalizedStrings from 'react-native-localization'
import en from './langs/en'
import de from './langs/de'
const strings = new LocalizedStrings({
en,
de,
})
export default strings
Everything works fine, but recently I discovered that my friend and his girlfriend do have iOS 11 Beta with german language set in system settings and the app in both cases is localized in english (settings screenshot attached)

Is it a bug or am I doing something wrong?
About this issue
- Original URL
- State: open
- Created 7 years ago
- Comments: 16 (5 by maintainers)
I think this happens if you haven’t configured all the supported localizations in the Xcode project: https://stackoverflow.com/questions/46205763/nsdateformatter-and-current-language-in-ios11
I was having the same issue. I can confirm that if you list in the info.list file the languages it will work on IOS 11
This is the method called: https://developer.apple.com/documentation/foundation/nslocale/1409990-currentlocale
as stated it should return the current locale (even if it doesn’t change when it’s changed when the app is running…)
Here they say that the code should not be used to retrieve language, but I changed the method because iOS 10 removed the original call…
The orignal code used
[[NSLocale preferredLanguages] objectAtIndex:0];but didn’t hold any information about the regional settings… I’ll experiment with some hybrid approach…