[ERROR:flutter/lib/ui/ui_dart_state.cc(207)] Unhandled Exception: Unable to load asset: assets/i18n/en.json
xmartinez22 opened this issue · comments
xmartinez22 commented
I keep receiving this message when i run my program. if i add
flutter:
assets:
- assets/i18n
then i receive message No file or variants found for asset: assets/i18n.
Florin Bratan commented
Make sure the assets are outside the lib
folder.
If the assets are located within the lib
folder, you need to specify the path as lib/assets/i18n
.
xmartinez22 commented
i had to manually create the assets/i18n because it didn't exist. why would it not exist? how do i get these files in there? also yes they are outside the lib folder
xmartinez22 commented
nevermind i thought the app was to auto translate it for you but you have to specify the translation yourself?
Florin Bratan commented
Yes.