react-native-localization-settings
react-native-localization-settings copied to clipboard
[iOS] Fix cannot detect language script and variant + use regionCode
- Fixed an issue causing language script and variant is ignored if not using
regionCode
(countryCode
) when setting language. For example:zh-Hans
becamezh-US
instead ofzh-Hans-US
. - NSLocale
countryCode
is deprecated so I migrate using NSLocaleregionCode
instead