aissat / easy_localization

Easy and Fast internationalizing your Flutter Apps
https://pub.dev/packages/easy_localization
MIT License
881 stars 312 forks source link

Changing system language does not effect #680

Open neestell opened 1 month ago

neestell commented 1 month ago

Hello! I have some trubbles with the library and its example.

Steps to reproduce

  1. Run an example of the library on Android device
  2. Change language in Android settings
  3. Return back to the app

Expected: all words translated according a selected language Actual: Nothing changed

I added peace of code to debug an app state

   localeResolutionCallback: (locale, supported){
        print("Selected locale " + locale.toString());
      } ,

Here is a result I/flutter (11746): Selected locale en_US <-- selected language I/flutter (11746): Selected locale ru_RU <-- previous language As you can see, a selected language was cancelled immediately

Thank you for help

eastsss commented 3 weeks ago

Same problem. App language will change only after app restart