Open roma160498 opened 1 year ago
the same problem, any news? or solutions?@roma160498
I'm using CodegenLoader
and it works
path: 'resources/langs',
assetLoader: const CodegenLoader(),
Actually i translated strings like this: "string".tr() So now, do i have to use generated class from codegenloader ? Changing all strings to class instances?
No you can still use "string".tr(). But you need to use build_runner now to generate strings
flutter pub run easy_localization:generate
flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart
any updates on this?
should the fallbackLocale handle this right?
Hey guys, still happening here. The lib is trying to load the language file for the default language of the device, even if it is not supported
This is the error that some users get on their devices (and I can't reproduce it locally). I am using the same code as in example:
translation folder has just 2 files: en.json and ru.json. These are the only locales I support. Why is there an attempt to load some other file?