firebase / firebase-ios-sdk

Firebase SDK for Apple App Development

Home Page:https://firebase.google.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App localization for Indian Regional languages.

spacekingindia opened this issue · 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!

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