Skip to content

Commit

Permalink
Added Marathi language in Remote Config Locale List (#13597)
Browse files Browse the repository at this point in the history
  • Loading branch information
rizafran authored Oct 23, 2024
1 parent a7e7eb1 commit 4b25fc4
Showing 1 changed file with 5 additions and 2 deletions.
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

0 comments on commit 4b25fc4

Please sign in to comment.