-
-
Notifications
You must be signed in to change notification settings - Fork 336
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 [XXX] not found #426
Comments
@aissat hi chief, any update on this? |
in |
after changing also am getting same error :-( |
I'm having similar error, half strings in localized json are working, half not. Just to update, after performing hot reload, translations are applyed. |
Have same issue. Translations work only after hot reload |
Have the same issue. Even a hot restart doesn't help. |
yes for me too.. i did try many. didn't worked out! |
I found the problem. In my case, the reason was that I didn't use delegate from context. My code was
And following helped me.
But it seems that @MuthuSubramaniam has a different problem |
Same problem here. |
got the same problem , any new ? |
@MuthuSubramaniam , @YouSour Try to remove |
Lemme have a try! thank you! |
@crazyguysdev solved |
same problem with version easy_localization: ^3.0.1 |
Same issue here :( |
My translations would also only start working after a "Hot Reload". But I found that the root issue for me was that I was trying to use translations when instantiating the Small example of code with issue:
All I had to do, was move Although this doesn't seem to be the same as the issue reported here, I hope it can be of help to some of you. |
Could someone that still has this issue post his code here, or a minimal sample to reproduce? (inclunding his json files) |
Duplicate of #394 |
import 'package:Majannah/History.dart'; import 'Channel_new.dart'; //import 'forgot.dart'; runApp( class myApp extends StatelessWidget { class Majannah extends StatefulWidget { @OverRide class _MajannahState extends State { // This widget is the root of your application.
} void changeLanguage(String languageCode) { what is error in this? |
@saiprashadmurali1511 It is impossible to help you this way. I assume you have the "Localization key [xxx] not found"- warning. If you want help, you need to create a sample which someone else can use to reproduce. This sample should....
Please keep in mind that this is open source an people help you in their free time without any cost, so you should put in the maximum effort to make it easy to help you. |
error
@aissat
folder:
Pubspec.yaml
After ran below command,
flutter pub run easy_localization:generate --source-dir ./assets/translations -f keys -o locale_keys.g.dart
easy localization: All done! File generated in /Users/###/Documents/projects/versionControl/###/###/lib/generated/locale_keys.g.dart
@aissat
====
main.dart
materialApp
The text was updated successfully, but these errors were encountered: