From b939a0144be4bbb35daf93ea70709ffe563b5874 Mon Sep 17 00:00:00 2001 From: Hsuan Lee Date: Mon, 30 Dec 2019 16:25:31 +0800 Subject: [PATCH] feat(module:i18n): support for Armenian --- components/i18n/languages/calendar/hy_AM.ts | 36 ++++++++++ .../i18n/languages/date-picker/hy_AM.ts | 27 ++++++++ components/i18n/languages/en_US.ts | 17 +++-- components/i18n/languages/hy_AM.ts | 69 +++++++++++++++++++ components/i18n/languages/nl_NL.ts | 21 +++++- components/i18n/languages/pagination/hy_AM.ts | 23 +++++++ components/i18n/languages/pt_BR.ts | 6 ++ components/i18n/languages/sk_SK.ts | 21 +++++- components/i18n/languages/th_TH.ts | 21 +++++- .../i18n/languages/time-picker/hy_AM.ts | 13 ++++ components/i18n/languages/zh_CN.ts | 7 +- docs/i18n.en-US.md | 1 + docs/i18n.zh-CN.md | 1 + 13 files changed, 251 insertions(+), 12 deletions(-) create mode 100644 components/i18n/languages/calendar/hy_AM.ts create mode 100644 components/i18n/languages/date-picker/hy_AM.ts create mode 100644 components/i18n/languages/hy_AM.ts create mode 100644 components/i18n/languages/pagination/hy_AM.ts create mode 100644 components/i18n/languages/time-picker/hy_AM.ts diff --git a/components/i18n/languages/calendar/hy_AM.ts b/components/i18n/languages/calendar/hy_AM.ts new file mode 100644 index 00000000000..8849c9b6a6e --- /dev/null +++ b/components/i18n/languages/calendar/hy_AM.ts @@ -0,0 +1,36 @@ +/** + * @license + * Copyright Alibaba.com All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE + */ + +export default { + today: 'Այսօր', + now: 'Հիմա', + backToToday: 'Վերադառնալ այսօր', + ok: 'Օկ', + clear: 'Մաքրել', + month: 'Ամիս', + year: 'Տարի', + timeSelect: 'ընտրեք ժամը', + dateSelect: 'ընտրեք ամսաթիվը', + weekSelect: 'Ընտրեք շաբաթը', + monthSelect: 'Ընտրեք ամիսը', + yearSelect: 'Ընտրեք տարին', + decadeSelect: 'Ընտրեք տասնամյակը', + yearFormat: 'YYYY', + dateFormat: 'DD/MM//YYYY', + dayFormat: 'DD', + dateTimeFormat: 'DD/MM//YYYY HH:mm:ss', + monthBeforeYear: true, + previousMonth: 'Անցած ամիս (PageUp)', + nextMonth: 'Մյուս ամիս (PageDown)', + previousYear: 'Անցած տարի (Control + left)', + nextYear: 'Մյուս տարի (Control + right)', + previousDecade: 'Անցած տասնամյակ', + nextDecade: 'Մյուս տասնամյակ', + previousCentury: 'Անցած դար', + nextCentury: 'Մյուս դար' +}; diff --git a/components/i18n/languages/date-picker/hy_AM.ts b/components/i18n/languages/date-picker/hy_AM.ts new file mode 100644 index 00000000000..3669cee343c --- /dev/null +++ b/components/i18n/languages/date-picker/hy_AM.ts @@ -0,0 +1,27 @@ +/** + * @license + * Copyright Alibaba.com All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE + */ + +import CalendarLocale from '../calendar/hy_AM'; +import TimePickerLocale from '../time-picker/hy_AM'; + +// Merge into a locale object +export const locale = { + lang: { + placeholder: 'Ընտրեք ամսաթիվը', + rangePlaceholder: ['Մեկնարկի ամսաթիվ', 'Ավարտի ամսաթիվը'], + ...CalendarLocale + }, + timePickerLocale: { + ...TimePickerLocale + } +}; + +// All settings at: +// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json + +export default locale; diff --git a/components/i18n/languages/en_US.ts b/components/i18n/languages/en_US.ts index ccd8b411d84..6f70f17e438 100644 --- a/components/i18n/languages/en_US.ts +++ b/components/i18n/languages/en_US.ts @@ -26,7 +26,9 @@ export default { filterReset: 'Reset', selectAll: 'Select current page', selectInvert: 'Invert current page', - sortTitle: 'Sort' + sortTitle: 'Sort', + expand: 'Expand row', + collapse: 'Collapse row' }, Modal: { okText: 'OK', @@ -47,7 +49,8 @@ export default { uploading: 'Uploading...', removeFile: 'Remove file', uploadError: 'Upload error', - previewFile: 'Preview file' + previewFile: 'Preview file', + downloadFile: 'Download file' }, Empty: { description: 'No Data' @@ -56,12 +59,12 @@ export default { icon: 'icon' }, Text: { - edit: 'edit', - copy: 'copy', - copied: 'copy success', - expand: 'expand' + edit: 'Edit', + copy: 'Copy', + copied: 'Copied', + expand: 'Expand' }, PageHeader: { - back: 'back' + back: 'Back' } }; diff --git a/components/i18n/languages/hy_AM.ts b/components/i18n/languages/hy_AM.ts new file mode 100644 index 00000000000..a39aaf06686 --- /dev/null +++ b/components/i18n/languages/hy_AM.ts @@ -0,0 +1,69 @@ +/** + * @license + * Copyright Alibaba.com All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE + */ + +import Calendar from './calendar/hy_AM'; +import DatePicker from './date-picker/hy_AM'; +import Pagination from './pagination/hy_AM'; +import TimePicker from './time-picker/hy_AM'; + +export default { + locale: 'hy', + Pagination, + DatePicker, + TimePicker, + Calendar, + global: { + placeholder: 'Ընտրեք' + }, + Table: { + filterTitle: 'ֆիլտրի ընտրացանկ', + filterConfirm: 'ֆիլտրել', + filterReset: 'Զրոյացնել', + selectAll: 'Ընտրեք ընթացիկ էջը', + selectInvert: 'Փոխարկել ընթացիկ էջը', + sortTitle: 'Տեսակավորել', + expand: 'Ընդլայնեք տողը', + collapse: 'Կրճատել տողը' + }, + Modal: { + okText: 'Օկ', + cancelText: 'Չեղարկել', + justOkText: 'Օկ' + }, + Popconfirm: { + okText: 'Հաստատել', + cancelText: 'Մերժել' + }, + Transfer: { + titles: ['', ''], + searchPlaceholder: 'Որոնեք այստեղ', + itemUnit: 'պարագան', + itemsUnit: 'պարագաները' + }, + Upload: { + uploading: 'Ներբեռնում...', + removeFile: 'Հեռացնել ֆայլը', + uploadError: 'Ներբեռնման սխալ', + previewFile: 'Դիտել ֆայլը' + }, + Empty: { + description: 'Տվյալներ չկան' + }, + Icon: { + icon: 'պատկեր' + }, + Text: { + edit: 'Խմբագրել', + copy: 'Պատճենել', + copied: 'Պատճենվել է', + expand: 'Տեսնել ավելին' + }, + PageHeader: { + back: 'Հետ' + } +}; diff --git a/components/i18n/languages/nl_NL.ts b/components/i18n/languages/nl_NL.ts index 592e39a5750..174f6f3abc1 100755 --- a/components/i18n/languages/nl_NL.ts +++ b/components/i18n/languages/nl_NL.ts @@ -17,12 +17,18 @@ export default { DatePicker, TimePicker, Calendar, + global: { + placeholder: 'Maak een selectie' + }, Table: { filterTitle: 'Filteren', filterConfirm: 'OK', filterReset: 'Reset', selectAll: 'Selecteer huidige pagina', - selectInvert: 'Deselecteer huidige pagina' + selectInvert: 'Deselecteer huidige pagina', + sortTitle: 'Sorteren', + expand: 'Rij uitklappen', + collapse: 'Rij inklappen' }, Modal: { okText: 'OK', @@ -34,6 +40,7 @@ export default { cancelText: 'Annuleren' }, Transfer: { + titles: ['', ''], searchPlaceholder: 'Zoeken', itemUnit: 'item', itemsUnit: 'items' @@ -46,5 +53,17 @@ export default { }, Empty: { description: 'Geen gegevens' + }, + Icon: { + icon: 'icoon' + }, + Text: { + edit: 'Bewerken', + copy: 'Kopieren', + copied: 'Gekopieerd', + expand: 'Uitklappen' + }, + PageHeader: { + back: 'Terug' } }; diff --git a/components/i18n/languages/pagination/hy_AM.ts b/components/i18n/languages/pagination/hy_AM.ts new file mode 100644 index 00000000000..a0ec1f3a4db --- /dev/null +++ b/components/i18n/languages/pagination/hy_AM.ts @@ -0,0 +1,23 @@ +/** + * @license + * Copyright Alibaba.com All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE + */ + +export default { + // Options.jsx + items_per_page: '/ էջ', + jump_to: 'Գնալ', + jump_to_confirm: 'հաստատել', + page: '', + + // Pagination.jsx + prev_page: 'Նախորդ Էջ', + next_page: 'Հաջորդ Էջ', + prev_5: 'Նախորդ 5 Էջերը', + next_5: 'Հաջորդ 5 Էջերը', + prev_3: 'Նախորդ 3 Էջերը', + next_3: 'Հաջորդ 3 Էջերը' +}; diff --git a/components/i18n/languages/pt_BR.ts b/components/i18n/languages/pt_BR.ts index b370552ee26..29c1a73b0ce 100755 --- a/components/i18n/languages/pt_BR.ts +++ b/components/i18n/languages/pt_BR.ts @@ -46,5 +46,11 @@ export default { }, Empty: { description: 'Não há dados' + }, + Text: { + edit: 'editar', + copy: 'copiar', + copied: 'copiado', + expand: 'expandir' } }; diff --git a/components/i18n/languages/sk_SK.ts b/components/i18n/languages/sk_SK.ts index 01f679484da..5277b7dd4d2 100755 --- a/components/i18n/languages/sk_SK.ts +++ b/components/i18n/languages/sk_SK.ts @@ -17,12 +17,18 @@ export default { DatePicker, TimePicker, Calendar, + global: { + placeholder: 'Prosím vyberte' + }, Table: { filterTitle: 'Filter', filterConfirm: 'OK', filterReset: 'Obnoviť', selectAll: 'Vybrať všetko', - selectInvert: 'Vybrať opačné' + selectInvert: 'Vybrať opačné', + sortTitle: 'Zoradiť', + expand: 'Rozbaliť riadok', + collapse: 'Zbaliť riadok' }, Modal: { okText: 'OK', @@ -34,6 +40,7 @@ export default { cancelText: 'Zrušiť' }, Transfer: { + titles: ['', ''], searchPlaceholder: 'Vyhľadávanie', itemUnit: 'položka', itemsUnit: 'položiek' @@ -46,5 +53,17 @@ export default { }, Empty: { description: 'Žiadne dáta' + }, + Icon: { + icon: 'ikona' + }, + Text: { + edit: 'Upraviť', + copy: 'Kopírovať', + copied: 'Skopírované', + expand: 'Zväčšiť' + }, + PageHeader: { + back: 'Späť' } }; diff --git a/components/i18n/languages/th_TH.ts b/components/i18n/languages/th_TH.ts index 754c67684bf..d5e90ce2d1c 100755 --- a/components/i18n/languages/th_TH.ts +++ b/components/i18n/languages/th_TH.ts @@ -17,12 +17,18 @@ export default { DatePicker, TimePicker, Calendar, + global: { + placeholder: 'กรุณาเลือก' + }, Table: { filterTitle: 'ตัวกรอง', filterConfirm: 'ยืนยัน', filterReset: 'รีเซ็ต', selectAll: 'เลือกทั้งหมดในหน้านี้', - selectInvert: 'เลือกสถานะตรงกันข้าม' + selectInvert: 'เลือกสถานะตรงกันข้าม', + sortTitle: 'เรียง', + expand: 'แสดงแถวข้อมูล', + collapse: 'ย่อแถวข้อมูล' }, Modal: { okText: 'ตกลง', @@ -34,6 +40,7 @@ export default { cancelText: 'ยกเลิก' }, Transfer: { + titles: ['', ''], searchPlaceholder: 'ค้นหา', itemUnit: 'ชิ้น', itemsUnit: 'ชิ้น' @@ -46,5 +53,17 @@ export default { }, Empty: { description: 'ไม่มีข้อมูล' + }, + Icon: { + icon: 'ไอคอน' + }, + Text: { + edit: 'แก้ไข', + copy: 'คัดลอก', + copied: 'คัดลอกแล้ว', + expand: 'ขยาย' + }, + PageHeader: { + back: 'ย้อนกลับ' } }; diff --git a/components/i18n/languages/time-picker/hy_AM.ts b/components/i18n/languages/time-picker/hy_AM.ts new file mode 100644 index 00000000000..5ecac1870bc --- /dev/null +++ b/components/i18n/languages/time-picker/hy_AM.ts @@ -0,0 +1,13 @@ +/** + * @license + * Copyright Alibaba.com All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE + */ + +const locale = { + placeholder: 'Ընտրեք ժամը' +}; + +export default locale; diff --git a/components/i18n/languages/zh_CN.ts b/components/i18n/languages/zh_CN.ts index f2598971a98..45a16e881e5 100755 --- a/components/i18n/languages/zh_CN.ts +++ b/components/i18n/languages/zh_CN.ts @@ -27,7 +27,9 @@ export default { filterReset: '重置', selectAll: '全选当页', selectInvert: '反选当页', - sortTitle: '排序' + sortTitle: '排序', + expand: '展开行', + collapse: '关闭行' }, Modal: { okText: '确定', @@ -47,7 +49,8 @@ export default { uploading: '文件上传中', removeFile: '删除文件', uploadError: '上传错误', - previewFile: '预览文件' + previewFile: '预览文件', + downloadFile: '下载文件' }, Empty: { description: '暂无数据' diff --git a/docs/i18n.en-US.md b/docs/i18n.en-US.md index 7fb72376d11..6106efddbf6 100755 --- a/docs/i18n.en-US.md +++ b/docs/i18n.en-US.md @@ -66,6 +66,7 @@ Supported languages: | Language | Package Name | | --------------------- | -------- | | Arabic | ar_EG | +| Armenian | hy_AM | | Bulgarian | bg_BG | | Catalan | ca_ES | | Czech | cs_CZ | diff --git a/docs/i18n.zh-CN.md b/docs/i18n.zh-CN.md index cfab91b1b4d..b59f72f2365 100755 --- a/docs/i18n.zh-CN.md +++ b/docs/i18n.zh-CN.md @@ -65,6 +65,7 @@ switchLanguage() { | 语言 | 语言包名 | | ---------------- | ------ | | 阿拉伯 | ar_EG | +| 亞美尼亞 | hy_AM | | 保加利亚语 | bg_BG | | 加泰罗尼亚语 | ca_ES | | 捷克语 | cs_CZ |