firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

App localization for Indian Regional languages.

Open spacekingindia opened this issue 1 year ago • 2 comments

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 Config parameter 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 Config parameter in the Localized App which supports both Hindi and Marathi.
  • Change language of app to Hindi from 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 Marathi from 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!

spacekingindia avatar Sep 04 '24 05:09 spacekingindia

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Sep 04 '24 05:09 google-oss-bot

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: Screenshot 2024-09-09 at 10 40 06 AM

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" ],

spacekingindia avatar Sep 09 '24 05:09 spacekingindia

Fix has merged and will be part of the 11.5.0 release planned to go out the week of November 11

paulb777 avatar Oct 23 '24 17:10 paulb777