Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions FirebaseRemoteConfig/Sources/RCNDevice.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ RCNDeviceModel FIRRemoteConfigDeviceSubtype(void) {
return [[[NSLocale currentLocale] objectForKey:NSLocaleCountryCode] lowercaseString];
}

// TODO(rizafran): To migrate to use ISOLanguageCodes in the future
NSDictionary<NSString *, NSArray *> *FIRRemoteConfigFirebaseLocaleMap(void) {
return @{
// Albanian
Expand All @@ -82,8 +83,6 @@ RCNDeviceModel FIRRemoteConfigDeviceSubtype(void) {
@"fi" : @[ @"fi", @"fi_FI" ],
// Hebrew
@"he" : @[ @"he", @"iw_IL" ],
// Hindi
@"hi" : @[ @"hi_IN" ],
// Hungarian
@"hu" : @[ @"hu", @"hu_HU" ],
// Icelandic
Expand Down Expand Up @@ -153,6 +152,9 @@ RCNDeviceModel FIRRemoteConfigDeviceSubtype(void) {
@"de" : @[ @"de", @"de_AT", @"de_DE", @"de_LU", @"de_CH", @"de-DE" ],
// Greek
@"el" : @[ @"el", @"el_CY", @"el_GR" ],
// India
@"hi_IN" :
@[ @"hi_IN", @"ta_IN", @"te_IN", @"mr_IN", @"bn_IN", @"gu_IN", @"kn_IN", @"pa_Guru_IN" ],
// Italian
@"it" : @[ @"it", @"it_IT", @"it_CH", @"it-IT" ],
// Japanese
Expand Down Expand Up @@ -188,6 +190,7 @@ RCNDeviceModel FIRRemoteConfigDeviceSubtype(void) {
}
return locales;
}

NSString *FIRRemoteConfigDeviceLocale(void) {
NSArray<NSString *> *locales = FIRRemoteConfigAppManagerLocales();
NSArray<NSString *> *preferredLocalizations =
Expand Down
Loading