Merge pull request #35 from hstaudacher/master

Fix #18: 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
1 changed files with 1 additions and 1 deletions

View File

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