Skip to content

Commit

Permalink
feat(module:i18n): support for Romanian locale (NG-ZORRO#4068)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsuanxyz authored Sep 6, 2019
1 parent 0ded4ec commit c0338a1
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 0 deletions.
24 changes: 24 additions & 0 deletions components/i18n/languages/date-picker/ro_RO.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* @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/ro_RO';
import TimePickerLocale from '../time-picker/ro_RO';

// Merge into a locale object
const locale = {
lang: {
placeholder: 'Selectează data',
rangePlaceholder: ['Data start', 'Data sfârșit'],
...CalendarLocale
},
timePickerLocale: {
...TimePickerLocale
}
};

export default locale;
69 changes: 69 additions & 0 deletions components/i18n/languages/ro_RO.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/ro_RO';
import DatePicker from './date-picker/ro_RO';
import Pagination from './pagination/ro_RO';
import TimePicker from './time-picker/ro_RO';

export default {
locale: 'ro',
Pagination,
DatePicker,
TimePicker,
Calendar,
global: {
placeholder: 'Selectează'
},
Table: {
filterTitle: 'Filtrează',
filterConfirm: 'OK',
filterReset: 'Resetează',
selectAll: 'Selectează pagina curentă',
selectInvert: 'Inversează pagina curentă',
sortTitle: 'Ordonează',
expand: 'Extinde rândul',
collapse: 'Micșorează rândul'
},
Modal: {
okText: 'OK',
cancelText: 'Anulare',
justOkText: 'OK'
},
Popconfirm: {
okText: 'OK',
cancelText: 'Anulare'
},
Transfer: {
titles: ['', ''],
searchPlaceholder: 'Căutare',
itemUnit: 'element',
itemsUnit: 'elemente'
},
Upload: {
uploading: 'Se transferă...',
removeFile: 'Înlătură fișierul',
uploadError: 'Eroare la upload',
previewFile: 'Previzualizare fișier'
},
Empty: {
description: 'Fără date'
},
Icon: {
icon: 'icon'
},
Text: {
edit: 'editează',
copy: 'copiază',
copied: 'copiat',
expand: 'extinde'
},
PageHeader: {
back: 'înapoi'
}
};
13 changes: 13 additions & 0 deletions components/i18n/languages/time-picker/ro_RO.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: 'Selectează ora'
};

export default locale;
2 changes: 2 additions & 0 deletions components/i18n/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export { default as id_ID } from './languages/id_ID';
export { default as is_IS } from './languages/is_IS';
export { default as it_IT } from './languages/it_IT';
export { default as ja_JP } from './languages/ja_JP';
export { default as kn_IN } from './languages/kn_IN';
export { default as ko_KR } from './languages/ko_KR';
export { default as ku_IQ } from './languages/ku_IQ';
export { default as lv_LV } from './languages/lv_LV';
Expand All @@ -49,6 +50,7 @@ export { default as nl_NL } from './languages/nl_NL';
export { default as pl_PL } from './languages/pl_PL';
export { default as pt_BR } from './languages/pt_BR';
export { default as pt_PT } from './languages/pt_PT';
export { default as ro_RO } from './languages/ro_RO';
export { default as ru_RU } from './languages/ru_RU';
export { default as sk_SK } from './languages/sk_SK';
export { default as sl_SI } from './languages/sl_SI';
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 @@ -109,6 +109,7 @@ Supported languages:
| Tamil | ta_IN |
| Thai | th_TH |
| Turkish | tr_TR |
| Romanian | ro_RO |
| Russian | ru_RU |
| Ukrainian | uk_UA |
| Vietnamese | vi_VN |
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 @@ -108,6 +108,7 @@ switchLanguage() {
| 泰米尔语 | ta_IN |
| 泰语 | th_TH |
| 土耳其语 | tr_TR |
| 罗马尼亚语 | ro_RO |
| 俄罗斯语 | ru_RU |
| 乌克兰语 | uk_UA |
| 越南语 | vi_VN |
Expand Down

0 comments on commit c0338a1

Please sign in to comment.