Skip to content

Commit

Permalink
feat(module:i18n): support for Armenian (#4611)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsuanxyz authored and vthinkxie committed Jan 6, 2020
1 parent 01edcde commit 038691f
Show file tree
Hide file tree
Showing 13 changed files with 251 additions and 12 deletions.
36 changes: 36 additions & 0 deletions components/i18n/languages/calendar/hy_AM.ts
Original file line number Diff line number Diff line change
@@ -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: 'Մյուս դար'
};
27 changes: 27 additions & 0 deletions components/i18n/languages/date-picker/hy_AM.ts
Original file line number Diff line number Diff line change
@@ -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;
17 changes: 10 additions & 7 deletions components/i18n/languages/en_US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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'
Expand All @@ -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'
}
};
69 changes: 69 additions & 0 deletions components/i18n/languages/hy_AM.ts
Original file line number Diff line number Diff line change
@@ -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: 'Հետ'
}
};
21 changes: 20 additions & 1 deletion components/i18n/languages/nl_NL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -34,6 +40,7 @@ export default {
cancelText: 'Annuleren'
},
Transfer: {
titles: ['', ''],
searchPlaceholder: 'Zoeken',
itemUnit: 'item',
itemsUnit: 'items'
Expand All @@ -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'
}
};
23 changes: 23 additions & 0 deletions components/i18n/languages/pagination/hy_AM.ts
Original file line number Diff line number Diff line change
@@ -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 Էջերը'
};
6 changes: 6 additions & 0 deletions components/i18n/languages/pt_BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,11 @@ export default {
},
Empty: {
description: 'Não há dados'
},
Text: {
edit: 'editar',
copy: 'copiar',
copied: 'copiado',
expand: 'expandir'
}
};
21 changes: 20 additions & 1 deletion components/i18n/languages/sk_SK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -34,6 +40,7 @@ export default {
cancelText: 'Zrušiť'
},
Transfer: {
titles: ['', ''],
searchPlaceholder: 'Vyhľadávanie',
itemUnit: 'položka',
itemsUnit: 'položiek'
Expand All @@ -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äť'
}
};
21 changes: 20 additions & 1 deletion components/i18n/languages/th_TH.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ export default {
DatePicker,
TimePicker,
Calendar,
global: {
placeholder: 'กรุณาเลือก'
},
Table: {
filterTitle: 'ตัวกรอง',
filterConfirm: 'ยืนยัน',
filterReset: 'รีเซ็ต',
selectAll: 'เลือกทั้งหมดในหน้านี้',
selectInvert: 'เลือกสถานะตรงกันข้าม'
selectInvert: 'เลือกสถานะตรงกันข้าม',
sortTitle: 'เรียง',
expand: 'แสดงแถวข้อมูล',
collapse: 'ย่อแถวข้อมูล'
},
Modal: {
okText: 'ตกลง',
Expand All @@ -34,6 +40,7 @@ export default {
cancelText: 'ยกเลิก'
},
Transfer: {
titles: ['', ''],
searchPlaceholder: 'ค้นหา',
itemUnit: 'ชิ้น',
itemsUnit: 'ชิ้น'
Expand All @@ -46,5 +53,17 @@ export default {
},
Empty: {
description: 'ไม่มีข้อมูล'
},
Icon: {
icon: 'ไอคอน'
},
Text: {
edit: 'แก้ไข',
copy: 'คัดลอก',
copied: 'คัดลอกแล้ว',
expand: 'ขยาย'
},
PageHeader: {
back: 'ย้อนกลับ'
}
};
13 changes: 13 additions & 0 deletions components/i18n/languages/time-picker/hy_AM.ts
Original file line number Diff line number Diff line change
@@ -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;
7 changes: 5 additions & 2 deletions components/i18n/languages/zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export default {
filterReset: '重置',
selectAll: '全选当页',
selectInvert: '反选当页',
sortTitle: '排序'
sortTitle: '排序',
expand: '展开行',
collapse: '关闭行'
},
Modal: {
okText: '确定',
Expand All @@ -47,7 +49,8 @@ export default {
uploading: '文件上传中',
removeFile: '删除文件',
uploadError: '上传错误',
previewFile: '预览文件'
previewFile: '预览文件',
downloadFile: '下载文件'
},
Empty: {
description: '暂无数据'
Expand Down
1 change: 1 addition & 0 deletions docs/i18n.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Supported languages:
| Language | Package Name |
| --------------------- | -------- |
| Arabic | ar_EG |
| Armenian | hy_AM |
| Bulgarian | bg_BG |
| Catalan | ca_ES |
| Czech | cs_CZ |
Expand Down
1 change: 1 addition & 0 deletions docs/i18n.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ switchLanguage() {
| 语言 | 语言包名 |
| ---------------- | ------ |
| 阿拉伯 | ar_EG |
| 亞美尼亞 | hy_AM |
| 保加利亚语 | bg_BG |
| 加泰罗尼亚语 | ca_ES |
| 捷克语 | cs_CZ |
Expand Down

0 comments on commit 038691f

Please sign in to comment.