We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I keep getting this error:
I have tried to add it in the pubspec file under :
flutter: assets: - lang/ // And - assets/lang
any idea what I need to add also?
The text was updated successfully, but these errors were encountered:
move the lang folder one level up to parent directory and keep your change in assets
assets: - lang/
Sorry, something went wrong.
I propose a different solution @neilbeukes Don't move the folder, and check how I did it here
But long story short: pubspec.yaml
pubspec.yaml
assets: - assets/lang/en.json - assets/lang/zh.json
and change line 27 on the app_localizations.dart to
app_localizations.dart
await rootBundle.loadString('assets/lang/${locale.languageCode}.json');
@arturjnt thanks a lot for the suggestion.
No branches or pull requests
Hi,
I keep getting this error:
I have tried to add it in the pubspec file under :
any idea what I need to add also?
The text was updated successfully, but these errors were encountered: