diff --git a/components/i18n/languages/zh_TW.ts b/components/i18n/languages/zh_TW.ts index 0b6b15b9fa6..f5a90e1e8ec 100755 --- a/components/i18n/languages/zh_TW.ts +++ b/components/i18n/languages/zh_TW.ts @@ -17,6 +17,10 @@ export default { DatePicker, TimePicker, Calendar, + // locales for all comoponents + global: { + placeholder: '請選擇' + }, Table: { filterTitle: '篩選器', filterConfirm: '確 定', @@ -47,6 +51,15 @@ export default { Empty: { description: '無此資料' }, + Icon: { + icon: '圖標' + }, + Text: { + edit: '編輯', + copy: '複製', + copied: '複製成功', + expand: '展開' + }, PageHeader: { back: '返回' } diff --git a/components/i18n/nz-i18n.interface.ts b/components/i18n/nz-i18n.interface.ts index 38be071f17d..7cd5fdd0bd2 100644 --- a/components/i18n/nz-i18n.interface.ts +++ b/components/i18n/nz-i18n.interface.ts @@ -76,7 +76,7 @@ export interface NzI18nInterface { DatePicker: NzDatePickerI18nInterface; TimePicker: NzTimePickerI18nInterface; Calendar: NzCalendarI18nInterface; - global: NzGlobalI18nInterface; + global?: NzGlobalI18nInterface; Table: { filterTitle: string; filterConfirm: string; @@ -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