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

Localization Issue with OS language changes #94

Closed
MaxiStefan opened this issue Sep 9, 2022 · 1 comment
Closed

Localization Issue with OS language changes #94

MaxiStefan opened this issue Sep 9, 2022 · 1 comment

Comments

@MaxiStefan
Copy link

MaxiStefan commented Sep 9, 2022

Hi,

Tested this plugin primarily for the cool nested JSON feature, however, I found a problem when the user tries to change the language from the OS settings.

I am calling LocalizedApp.of(context).delegate.currentLocale.languageCode on

@OverRide
void didChangeAppLifecycleState(AppLifecycleState state)

to listen to the scenario described above and the localizationDelegate does not seem to be changed. It has the same language code even if in the OS the language has been changed.

Any ideas? Thanks

@MaxiStefan MaxiStefan changed the title Localization Issue Localization Issue with OS language changes Sep 9, 2022
@bratan
Copy link
Member

bratan commented Sep 26, 2022

Hi @MaxiStefan, currently this functionality is not implemented in flutter_translate.

There is a previous issue #21 regarding this. I don't have time currently to implement or test this functionality, but there is an example there which you can try.

@bratan bratan closed this as not planned Won't fix, can't repro, duplicate, stale Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants