Skip to content

Commit 56134a9

Browse files
authored
Merge pull request #195 from deron8523114888/master
feat: add Traditional Chinese
2 parents 0b0be96 + 7132cd0 commit 56134a9

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

lib/src/i18n_model.dart

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ enum LocaleType {
3030
si,
3131
no,
3232
sq,
33-
sv
33+
sv,
34+
tw
3435
}
3536

3637
final _i18nModel = {
@@ -153,6 +154,17 @@ final _i18nModel = {
153154
'am': '上午',
154155
'pm': '下午'
155156
},
157+
'tw': {
158+
//Traditional Chinese
159+
'cancel': '取消',
160+
'done': '確定',
161+
'today': '今天',
162+
'monthShort': ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
163+
'monthLong': ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
164+
'day': ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日'],
165+
'am': '上午',
166+
'pm': '下午'
167+
},
156168
'nl': {
157169
//Dutch
158170
'cancel': 'Annuleer',
@@ -1201,6 +1213,8 @@ Map<String, dynamic> i18nObjInLocale(LocaleType type) {
12011213
return _i18nModel['sq'];
12021214
case LocaleType.sv:
12031215
return _i18nModel['sv'];
1216+
case LocaleType.tw:
1217+
return _i18nModel['tw'];
12041218
default:
12051219
return _i18nModel['en'];
12061220
}

0 commit comments

Comments
 (0)