flutter_translate icon indicating copy to clipboard operation
flutter_translate copied to clipboard

Localization Issue with OS language changes

Open MaxiStefan opened this issue 1 year ago • 0 comments

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 avatar Sep 09 '22 14:09 MaxiStefan