firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.6k stars 3.95k forks source link

🐛 [Firebase Remote Config] Add ability to manually set app's locale #12982

Closed adonisRodxander closed 2 months ago

adonisRodxander commented 2 months ago

This feature request proposes a new method, setAppLocale(locale)

Currently, Firebase Remote Config automatically uses the device's locale to determine the values of variables based on language conditions. However, there is no way to manually set the app's locale.

Firebase Remote Config provides a powerful way to manage and dynamically update app behavior and appearance without requiring users to download an app update. One of its features is the ability to deliver different variable values based on the device's locale. However, this feature has a limitation: it automatically uses the device's locale, and there is no method to manually set the app's locale.

Current Limitation:

Use Case:

A multi-language app allows users to switch between languages from within the app. With the current setup, Firebase Remote Config conditions based on locale will not reflect the user's language choice immediately. By using the proposed setAppLocale(locale) method, developers can ensure that Remote Config uses the correct language settings as soon as the user changes the language within the app.

Lyokone commented 2 months ago

Thanks for suggesting this feature. Unfortunately, as far as I can tell, it's not supported by the native SDKs. You should post this feature request on https://firebase.uservoice.com/. If it gets added to the native SDKs, we will be able to implement this feature.