Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(module:i18n): support for Romanian locale #4068

Merged
merged 1 commit into from
Sep 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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