From 4b25fc456862376f50cfcc932cbd29772d5e59b0 Mon Sep 17 00:00:00 2001 From: rizafran <56452638+rizafran@users.noreply.github.com> Date: Thu, 24 Oct 2024 00:39:49 +0800 Subject: [PATCH] Added Marathi language in Remote Config Locale List (#13597) --- FirebaseRemoteConfig/Sources/RCNDevice.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/FirebaseRemoteConfig/Sources/RCNDevice.m b/FirebaseRemoteConfig/Sources/RCNDevice.m index 48cda112f5e..3819ff26fbd 100644 --- a/FirebaseRemoteConfig/Sources/RCNDevice.m +++ b/FirebaseRemoteConfig/Sources/RCNDevice.m @@ -60,6 +60,7 @@ RCNDeviceModel FIRRemoteConfigDeviceSubtype(void) { return [[[NSLocale currentLocale] objectForKey:NSLocaleCountryCode] lowercaseString]; } +// TODO(rizafran): To migrate to use ISOLanguageCodes in the future NSDictionary *FIRRemoteConfigFirebaseLocaleMap(void) { return @{ // Albanian @@ -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 @@ -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 @@ -188,6 +190,7 @@ RCNDeviceModel FIRRemoteConfigDeviceSubtype(void) { } return locales; } + NSString *FIRRemoteConfigDeviceLocale(void) { NSArray *locales = FIRRemoteConfigAppManagerLocales(); NSArray *preferredLocalizations =