when i add new word in .arb it dosen't work
Closed this issue · 2 comments
Describe the bug
whene i add new word to .arb file and try to use it in ui it not apper in suggestion and i if i typed manually it still give me error
The getter 'newLocale' isn't defined for the type 'S'.
i use the packge flutter intl from vscode to set up my localization in my apps when i run project on flutter version like 3.22.1 it work fine but when i updated to flutter 3.24.2 it won't work any more when i try to run the command in terminal
flutter pub global run intl_utils:generate
it give me error:
To Reproduce
usage in UI
void main(List<String> arguments) { print(S.of(context).newLocale) }
System info
flutter doctor -v
Hi @AliSabbar,
Could you check if reactivating the intl_utils
package helps?
There is some issue with the Flutter cache after a Flutter upgrade.
Steps:
-
Deactivate
intl_utils
package:
flutter pub global deactivate intl_utils
-
Edit one of your ARB files and save to trigger
intl_utils
activation and generation of localization code.
Hi @AliSabbar,
Could you check if reactivating the
intl_utils
package helps? There is some issue with the Flutter cache after a Flutter upgrade.Steps:
- Deactivate
intl_utils
package:
flutter pub global deactivate intl_utils
- Edit one of your ARB files and save to trigger
intl_utils
activation and generation of localization code.
Thank You it work again