Enable translation for dutch and simplified-chinese

This commit is contained in:
Neeraj Gupta 2023-05-02 12:32:19 +05:30
parent 0eb346e2e5
commit 2733cc2c33
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1
2 changed files with 10 additions and 1 deletions

View file

@ -11,9 +11,16 @@ extension AppLocalizationsX on BuildContext {
// Add more language to the list only when at least 90% of the strings are
// translated in the corresponding language.
const List<Locale> appSupportedLocales = kDebugMode
? <Locale>[Locale('en'), Locale('fr'), Locale("nl")]
? <Locale>[
Locale('en'),
Locale('fr'),
Locale("nl"),
Locale("zh", "CN"),
]
: <Locale>[
Locale('en'),
Locale("nl"),
Locale("zh", "CN"),
];
Locale localResolutionCallBack(locales, supportedLocales) {

View file

@ -140,6 +140,8 @@ class _ItemsWidgetState extends State<ItemsWidget> {
return 'Suomi';
case 'zh':
return '中文';
case 'zh-CN':
return '中文';
case 'ja':
return '日本語';
case 'ko':