Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App localization for Indian Regional languages. #13577

Open
spacekingindia opened this issue Sep 4, 2024 · 2 comments
Open

App localization for Indian Regional languages. #13577

spacekingindia opened this issue Sep 4, 2024 · 2 comments
Assignees

Comments

@spacekingindia
Copy link

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!
@google-oss-bot
Copy link

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

@spacekingindia
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants