Skip to content

Commit

Permalink
fix(module:i18n): fix i18n interface and Traditional Chinese (NG-ZORR…
Browse files Browse the repository at this point in the history
…O#4102)

* fix(module:i18n): fix i18n interface and Traditional Chinese

* fix: fix typo

close NG-ZORRO#4080
  • Loading branch information
Wendell authored and hsuanxyz committed Sep 6, 2019
1 parent d7ea2d7 commit 7d0d576
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
13 changes: 13 additions & 0 deletions components/i18n/languages/zh_TW.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export default {
DatePicker,
TimePicker,
Calendar,
// locales for all comoponents
global: {
placeholder: '請選擇'
},
Table: {
filterTitle: '篩選器',
filterConfirm: '確 定',
Expand Down Expand Up @@ -47,6 +51,15 @@ export default {
Empty: {
description: '無此資料'
},
Icon: {
icon: '圖標'
},
Text: {
edit: '編輯',
copy: '複製',
copied: '複製成功',
expand: '展開'
},
PageHeader: {
back: '返回'
}
Expand Down
10 changes: 9 additions & 1 deletion components/i18n/nz-i18n.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export interface NzI18nInterface {
DatePicker: NzDatePickerI18nInterface;
TimePicker: NzTimePickerI18nInterface;
Calendar: NzCalendarI18nInterface;
global: NzGlobalI18nInterface;
global?: NzGlobalI18nInterface;
Table: {
filterTitle: string;
filterConfirm: string;
Expand Down Expand Up @@ -108,6 +108,14 @@ export interface NzI18nInterface {
Empty: {
description: string;
};
// TODO: make this required in the future.
// Temporarily optional to make sure not break anything.
Text?: {
edit: string;
copy: string;
copied: string;
expand: string;
};
}

// tslint:disable-next-line:no-any
Expand Down

0 comments on commit 7d0d576

Please sign in to comment.