easy_localization
easy_localization copied to clipboard
Unable to load assets: assets/translations/cs.json
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?
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?