aissat / easy_localization

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

add _supportedLocales in EasyLocalizationController; check the device… #672

Closed bbsmartc closed 2 months ago

bbsmartc commented 2 months ago

add _supportedLocales in EasyLocalizationController; check the deviceLocale in resetLocale;

to fix this issue

add scriptCode if useOnlyLangCode

scriptCode is needed sometimes, for example zh-Hans, zh-Hant

bbsmartc commented 2 months ago

oh and please add this to the changelog

changed added

bw-flagship commented 2 months ago

@bbsmartc did you see my other comment?

bbsmartc commented 2 months ago

@bbsmartc did you see my other comment?

sorry, forgot! in the latest pull request, the log is already modified to

    EasyLocalization.logger('Reset locale to $locale while the platform locale is $_deviceLocale and the fallback locale is $_fallbackLocale');