Enable translation for dutch and simplified-chinese
This commit is contained in:
parent
0eb346e2e5
commit
2733cc2c33
|
@ -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) {
|
||||
|
|
|
@ -140,6 +140,8 @@ class _ItemsWidgetState extends State<ItemsWidget> {
|
|||
return 'Suomi';
|
||||
case 'zh':
|
||||
return '中文';
|
||||
case 'zh-CN':
|
||||
return '中文';
|
||||
case 'ja':
|
||||
return '日本語';
|
||||
case 'ko':
|
||||
|
|
Loading…
Reference in a new issue