Created new issue as old one was closed but not resolved.
Replies are referenced below.
Version:
easy_localization: ^2.2.1
easy_localization_loader: ^0.0.2
Description:
I encountered this error when using a CSV file to provide for localization.Error:
[easy_localization] Missing message : Not found this Key ["clickMe"]
@Overman775 Thanks for noticing that, to simplify things, I removed the zh_Hans_SG_ entirely and kept only two locales, but the error persisted.
langs.csv
str,en_SG,ms_SG clickMe,Test,Hallo title,what,Hallo Usage print('title'.tr());Logs
[Easy Localization] Start locale loaded ms_SG [log] easy localization loader: load csv file assets/langs/langs.csv [Easy Localization] Init Localization Delegate [Easy Localization] Init provider [MyApp # locale] ms_SG [Easy Localization] Load Localization Delegate I/flutter ( 4456): [WARNING] Easy Localization: Localization key [title] not found I/flutter ( 4456): title
https://github.com/aissat/easy_localization/issues/153#issuecomment-629930776
https://github.com/aissat/easy_localization/issues/153#issuecomment-629989562
I have also this problem with CSV loader but it occured only on iOS..
And I did not forget :
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
<string>fr</string>
</array>
The logs are exactly the same as @Wilson13
I'm using
Flutter 1.17.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision e6b34c2b5c (3 weeks ago) • 2020-05-02 11:39:18 -0700
Engine • revision 540786dd51
Tools • Dart 2.8.1
And for the plugin
easy_localization: ^2.2.1
easy_localization_loader: ^0.0.2
I'll retry with JSON. However the first time I tried JSON it didn't worked at, the code in the JSONLoader wasn't implemented.. but maybe I forgot something. I'll check the version of the plugin I'm using.
Ok got it..... It's because EOL default option is for CRLF files... My files are LF. Unfortunaly this is not customizable without changing the package.
@Maus3rSR Thanks for the help, I’ll fix it in my free time or you can do PR 😉
I'll see if Im able to make a PR. I'm not familiar with Dart architecture :-) Maybe next week I'll do it.
Thank you!
@Maus3rSR @Wilson13
please check fix issue
dependencies:
easy_localization_loader:
git:
url: git://github.com/aissat/easy_localization_loader.git
ref: overman-dev
flutter pub upgrade@aissat can you test new fixed in your mac? need delete file and create new csv file
@Overman775 @aissat Shouldn't the loader package be updated with this fix? I think it would be helpful for newcomers, as the current official version found in pub.dev still presents this issue.