Jesway / flutter_translate

Flutter Translate is a fully featured localization / internationalization (i18n) library for Flutter.
MIT License
403 stars 118 forks source link

en.json missing from assets #99

Closed Appikorn closed 1 year ago

Appikorn commented 1 year ago

/flutter (29230): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Unable to load asset: "assets/i18n/en.json". E/flutter (29230): The asset does not exist or has empty data.

kristofb commented 1 year ago

Do you have flutter: assets:

in your pubspec file ?

and assets/i18n/en.json in your project folder?

vindolin commented 1 year ago

I encountered the same problem and it turned out that it was the missing trailing slash in my pubspec file. The missing slash is also on the documentation page under 1. Installation, Configuration & Usage.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.