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
Unconsistent _osLocale #141
Comments
@HugoHeneault plz check #130 |
@aissat I already did it 🤔 |
@aissat I just figured out that on the comments you gave me every locale has some files localized. What files should it be? 🤔 |
@Overman775 plz check this |
@HugoHeneault version 2.1.0+1? |
I was on 2.1.0+0, I can try with 2.1.0+2 if you think it might change (but I can't see what changed though) Thanks for your help! 👍 |
@HugoHeneault yep, try latest 2.1.0+2 |
I'm on it! Will come back to you later. The AssetLoader api changed so I need to update my custom asset loader. Might be worth it to update more than the the +0 to +2 for next times, so we know changes are required :) |
So I tried multiple builds:
I'm running out of idea. Do you want me to provide you the builds so you can check it? |
@HugoHeneault I don’t know what the problem is, maybe device bug Try run example on your iPhone, don't forgeret add lang in xcode and json |
Tried on 2 different devices. Same behavior. The main problem is we only have this issue on release versions (coming from testflight). |
Looking on my project.pbxproj file, there is only "en" in |
@Overman775 I tested the example app on my iPhone, I reproduce the error! Would you help me? :) Why is there no Here are the logs from my device: I ran it in debug mode from AndroidStudio.
As you can see, on 2nd launch, Here are my iPhone details: |
I pushed my source code (with Info.plist) on https://github.com/OwnWeb/easy_localization/tree/issue/unconsistent-locale |
@HugoHeneault bug confirm. @aissat reproduce: clean instal/debug on iOS emulator --> close(don't change lang) --> get off from memory iOS --> run again. Tested on stable & beta flutter channels. Android witout bug. |
@Overman775 Cool. My setup is OK then. Hope you'll find the issue as I've been looking on it for quite awhile and have no idea on what's wrong. @aissat If I can be of any help don't mind asking me! Thanks a lot |
@aissat @HugoHeneault find, problem in io.Platform.localeName... i thin its Flutter/Dart bug hack:
|
@Overman775 Awesome! I'm gonna try your workaround! Is it ok if I add it before my On your flutter bug repo there is no Thanks! |
Yep |
@Overman775 Your workaround seems to work! 🎉 Thanks a lot for your time and your help! |
As it's really the end of a long and tiring debugging we're thinking of a (small) recurring support of your project to thank you for your nice work! 🍻 How doest it work as you're at least 2 collaborators working on it? :) |
@HugoHeneault Glad that helped you 😃. Let's hope the Flutter/Dart team fixes it in Flutter
|
@Overman775 I was thinking about financial support, as we don't have much time to invest in working on this repo. :) |
@HugoHeneault Thanks 😃 |
Fixed in 1.20.2 stable branch |
This bug isn't easy reproducible in debug, only in release mode and I don't know how to fix it.
Edit: We found a way to reproduce it, here and there is an open issue on flutter repo.
There also is a workaround providen by @Overman775
On first launch, it starts in french (fr_FR) on a french iPhone (SE or 6).
On second launch, it starts in english (en_US)
Then it randomly starts in french or english depending on some unknown dark magic...
I added required keys in
Info.plist
:And also
I ran
flutter clean
.When I run
flutter run ios
it works nicely but when I deploy it to testflight it doesn't.Here are the logs I gathered with the console:
1st launch:
2nd launch:
Here is my setup:
What shall I do?
Thanks a lot!
The text was updated successfully, but these errors were encountered: