mirror of
https://github.com/status-im/react-native-i18n.git
synced 2025-02-07 17:55:59 +00:00
Merge pull request #35 from hstaudacher/master
Fix #18: Replace currentLocale with prefered languages
This commit is contained in:
commit
55ebe1259d
@ -16,7 +16,7 @@
|
|||||||
RCT_EXPORT_MODULE();
|
RCT_EXPORT_MODULE();
|
||||||
|
|
||||||
-(NSString*) getCurrentLocale{
|
-(NSString*) getCurrentLocale{
|
||||||
NSString *localeString=[[NSLocale currentLocale] localeIdentifier];
|
NSString *localeString=[[NSLocale preferredLanguages] objectAtIndex:0];
|
||||||
return localeString;
|
return localeString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user