2
0
mirror of https://github.com/status-im/react-native-i18n.git synced 2025-03-02 12:50:35 +00:00

Merge pull request from hstaudacher/master

Fix : Replace currentLocale with prefered languages
This commit is contained in:
Matteo Mazzarolo 2016-08-18 21:16:32 +02:00 committed by GitHub
commit 55ebe1259d

@ -16,7 +16,7 @@
RCT_EXPORT_MODULE();
-(NSString*) getCurrentLocale{
NSString *localeString=[[NSLocale currentLocale] localeIdentifier];
NSString *localeString=[[NSLocale preferredLanguages] objectAtIndex:0];
return localeString;
}