-
-
Notifications
You must be signed in to change notification settings - Fork 337
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
[🌎 Easy Localization] [WARNING] Localization key [key] not found #394
Comments
I am getting the same error. However not for all of my translations only for a few of them. |
For me the problem actually was that I was trying to access the localization before it was initialized. runApp(
EasyLocalization(
...
Use localization here
...
)
) |
I'm still experiencing the same issue, could you please provide a full code solution? |
@petodavid Please check the following repo for the full code. https://github.com/helloalbin/flutter_app/tree/easy_localization |
I had the same issue, it seems like the |
@machiato32 Yes, that is what i figured out too. |
But this is definitely a bug, which needs to be fixed. |
Same problem. await ensureInitialized is the first line in main. |
I get the same error too. await EasyLocalization.ensureInitialized(); here is the output of flutter doctor: Doctor summary (to see all details, run flutter doctor -v): • No issues found! |
solved it by adding "await" before EasyLocalizationController.initEasyLocation(); on easy_localization_app.dart line 106. i'll request the merge. |
Does not work for me. How awaiting a function that returns a Future would help in awaiting it? You still have to await that future so its still that same future. |
I solved it by adding the localization attributes in the MaterialApp() as stated in the readme on pub dev.
|
will solve issue #394 (initialization problem on V3.0.0)
I have the same issue, unfortunatly none of the above proposed changes worked out for me. |
Same here.. None of the above proposed changes worked out for me. |
The same issue, none of the above-suggested answers worked! |
If anyone still having this issue for csv files remove the easy_localization_loader. from pubspec and create a new file
|
same issue any solution ?? |
i solved problem by delete all file generated and execute flutter pub run easy_localization:generate |
I solved wrapping the MaterialApp's return MaterialApp(
localizationsDelegates: context.localizationDelegates,
supportedLocales: context.supportedLocales,
locale: context.locale,
home: Builder(
builder: (context) {
return MyWidget();
},
),
); I think the problem is related to the BuildContext passed in the |
holy moly.. I solved it by adding '/' at the end of assets/translations... |
I am still having this issue. Did anybody found a solution? |
startLocale: Locale.fromSubtags(languageCode: 'en'), |
I think a lot of very different problems are merged in this issue. A lot of them will be solved by the solutions of @Caffo17 and @johnsargado. However, if someone still has this problem, please comment here and code, so maintainers can reproduce it. |
thank you bro ,me too |
this worked for me but none of the above |
the delay worked for me. |
easy_localization: ^3.0.0
I have migrated my application to NullSafety and I have upgraded to the latest version of easy_localization. After the migration I am getting the following error in my console and the application is not displaying the values for my keys anymore. For every key in my json file I am getting the following error
[🌎 Easy Localization] [WARNING] Localization key [key] not found
Please note that this was working fine before the migration when I was using version 2.3.2.
My code is give below.
Startup log statements.
[🌎 Easy Localization] [DEBUG] Localization initialized
[🌎 Easy Localization] [DEBUG] Start
[🌎 Easy Localization] [DEBUG] Init state
[🌎 Easy Localization] [INFO] Start locale loaded en
[🌎 Easy Localization] [DEBUG] Build
[🌎 Easy Localization] [DEBUG] Init Localization Delegate
[🌎 Easy Localization] [DEBUG] Init provider
[🌎 Easy Localization] [WARNING] Localization key [select_your_language] not found
[🌎 Easy Localization] [WARNING] Localization key [next_step] not found
The text was updated successfully, but these errors were encountered: