I'm using easy_localization in my app. I have changed the language setting from English to Chinese, but app still displays English.
This is my project directory:
main.dart
runApp(EasyLocalization(
supportedLocales: const [Locale('en', 'US'), Locale('zh-CN', 'CN')],
path: 'assets/translations',
child: const App(),
)
zh-CN.json
"hello": "你好",
widget.dart
Text('hello'.tr());
Is it because the languageCode and countryCode wrong?