aissat / easy_localization

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

localization not work in flutter_module #474

Open leelai opened 2 years ago

leelai commented 2 years ago

Hi, I try to add easy_localization in flutter_module but not work in android, it always reads 'en'.

How to test: I added some test code in flutter sample project (the attached is a diff file for testing) https://github.com/flutter/samples/tree/master/add_to_app/fullscreen

diff file for testing diff.txt

leelai commented 2 years ago

I try to print context.deviceLocale.toString() in flutter, and it shows "und". so I think it fallback to use 'en'.

leelai commented 2 years ago

Currently, I have to read Platform.localeName to set locale manually.