firebase-ios-sdk
firebase-ios-sdk copied to clipboard
App localization for Indian Regional languages.
Description
I was localizing one app to support Indian regional languages and I was showing some information using Remote Config (JSON object) in my App. As I found there is an option to set conditional parameter in Remote Config to get values based on Language, I added conditional parameters for different Indic languages. Now after changing language from App's setting it is reflecting for Hindi only and not for other languages.
While debugging and deep diving in the firebase's code I identified there is no support of Indic language except Hindi. As there are no locale values exist in dictionary 'FIRRemoteConfigFirebaseLocaleMap' of class RCNDevice.
Reproducing the issue
- Create a
Remote Configparameter with default value on Firebase Console. - Now add conditional parameter of condition type Languages and choose language "Hindi" with value in Hindi language.
- Add one more conditional parameter of condition type Languages and choose language "Marathi" with value in Marathi language.
- Use created
Remote Configparameter in the Localized App which supports bothHindiandMarathi. - Change language of app to
Hindifrom App's settings. - It will reflect value in the app to show Hindi content as per 'Remote Config' conditional parameter added for Hindi.
- Change language of app to
Marathifrom App's settings. - It will reflect value in the app.
Firebase SDK Version
10.22.0
Xcode Version
15.3
Installation Method
CocoaPods
Firebase Product(s)
Remote Config
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Hi, Please make the library compatible with all Indic languages, including Tamil, Telugu, Marathi, Bangla, Kannada, Gujarati, Punjabi, and Odiya.
Additionally, please consider adding support for the Android platform if it is not already compatible.
I believe that expanding the library's support for these languages would significantly enhance its usability and accessibility for a wider audience.
Option to set these languages is available on Firebase Console:
Also if it helps I had set value of different languages as below in class of RCNDevice in my project, which was working for me:
// Tamil @"ta" : @[ @"ta" ], // Telugu @"te" : @[ @"te" ], // Marathi @"mr" : @[ @"mr" ], // Bangla @"bn" : @[ @"bn" ], // Gujarati @"gu" : @[ @"gu" ], // Kannada @"kn" : @[ @"kn" ], // Punjabi @"pa" : @[ @"pa" ],
Fix has merged and will be part of the 11.5.0 release planned to go out the week of November 11