Skip to content

Commit

Permalink
feat(module:i18n): support Malay and Tamil language (NG-ZORRO#3924)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wendell authored and Ricbet committed Apr 9, 2020
1 parent a788cf0 commit a1d6137
Show file tree
Hide file tree
Showing 15 changed files with 322 additions and 2 deletions.
36 changes: 36 additions & 0 deletions components/i18n/languages/calendar/ta_IN.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: 'M/D/YYYY',
dayFormat: 'D',
dateTimeFormat: 'M/D/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/ms_MY.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/ms_MY';
import TimePickerLocale from '../time-picker/ms_MY';

// Merge into a locale object
const locale = {
lang: {
placeholder: 'Pilih tarikh',
rangePlaceholder: ['Tarikh mula', 'Tarikh akhir'],
...CalendarLocale
},
timePickerLocale: {
...TimePickerLocale
}
};

// All settings at:
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json

export default locale;
27 changes: 27 additions & 0 deletions components/i18n/languages/date-picker/ta_IN.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/ta_IN';
import TimePickerLocale from '../time-picker/ta_IN';

// Merge into a locale object
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;
6 changes: 6 additions & 0 deletions components/i18n/languages/fr_BE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,11 @@ export default {
},
Empty: {
description: 'Aucune donnée'
},
Text: {
edit: 'éditer',
copy: 'copier',
copied: 'copie effectuée',
expand: 'développer'
}
};
6 changes: 6 additions & 0 deletions components/i18n/languages/fr_FR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,11 @@ export default {
},
Empty: {
description: 'Aucune donnée'
},
Text: {
edit: 'éditer',
copy: 'copier',
copied: 'copie effectuée',
expand: 'développer'
}
};
70 changes: 70 additions & 0 deletions components/i18n/languages/ms_MY.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/**
* @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/ms_MY';
import DatePicker from './date-picker/ms_MY';
import Pagination from './pagination/ms_MY';
import TimePicker from './time-picker/ms_MY';

export default {
locale: 'ms-my',
Pagination,
DatePicker,
TimePicker,
Calendar,
global: {
placeholder: 'Sila pilih'
},
PageHeader: {
back: 'Kembali'
},
Text: {
edit: 'Sunting',
copy: 'Salin',
copied: 'Berjaya menyalin',
expand: 'Kembang'
},
Empty: {
description: 'Tiada data'
},
Table: {
filterTitle: 'Cari dengan tajuk',
filterConfirm: 'Ok',
filterReset: 'Menetapkan semula',
emptyText: 'Tiada data',
selectAll: 'Pilih semua',
selectInvert: 'Terbalikkan'
},
Modal: {
okText: 'OK',
cancelText: 'Batal',
justOkText: 'OK'
},
Popconfirm: {
okText: 'OK',
cancelText: 'Batal'
},
Transfer: {
notFoundContent: 'Tidak dijumpai',
searchPlaceholder: 'Carian di sini',
itemUnit: 'item',
itemsUnit: 'item'
},
Icon: {
icon: 'ikon'
},
Select: {
notFoundContent: 'Tidak Dijumpai'
},
Upload: {
uploading: 'Sedang memuat naik...',
removeFile: 'Buang fail',
uploadError: 'Masalah muat naik',
previewFile: 'Tengok fail'
}
};
File renamed without changes.
23 changes: 23 additions & 0 deletions components/i18n/languages/pagination/ta_IN.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/sv_SE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,11 @@ export default {
},
Empty: {
description: 'Ingen information'
},
Text: {
edit: 'editera',
copy: 'kopiera',
copied: 'kopierad',
expand: 'expandera'
}
};
70 changes: 70 additions & 0 deletions components/i18n/languages/ta_IN.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/**
* @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//ta_IN';
import DatePicker from './date-picker/ta_IN';
import Pagination from './pagination/ta_IN';
import TimePicker from './time-picker/ta_IN';

export default {
locale: 'ta',
Pagination,
DatePicker,
TimePicker,
Calendar,
// locales for all comoponents
global: {
placeholder: 'தேதியைத் தேர்ந்தெடுக்கவும்'
},
Table: {
filterTitle: 'பட்டியலை மூடு',
filterConfirm: 'சரி',
filterReset: 'மீட்டமை',
emptyText: 'தகவல் இல்லை',
selectAll: 'அனைத்தையும் தேர்வுசெய்',
selectInvert: 'தலைகீழாக மாற்று',
sortTitle: 'தலைப்பை வரிசைப்படுத்தவும்'
},
Modal: {
okText: 'சரி',
cancelText: 'ரத்து செய்யவும்',
justOkText: 'பரவாயில்லை, சரி'
},
Popconfirm: {
okText: 'சரி',
cancelText: 'ரத்து செய்யவும்'
},
Transfer: {
titles: ['', ''],
notFoundContent: 'உள்ளடக்கம் கிடைக்கவில்லை',
searchPlaceholder: 'இங்கு தேடவும்',
itemUnit: 'தகவல்',
itemsUnit: 'தகவல்கள்'
},
Upload: {
uploading: 'பதிவேற்றுகிறது...',
removeFile: 'கோப்பை அகற்று',
uploadError: 'பதிவேற்றுவதில் பிழை',
previewFile: 'கோப்பை முன்னோட்டமிடுங்கள்'
},
Empty: {
description: 'தகவல் இல்லை'
},
Icon: {
icon: 'உருவம்'
},
Text: {
edit: 'திருத்து',
copy: 'நகல் எடு',
copied: 'நகல் எடுக்கப்பட்டது',
expand: 'விரிவாக்கவும்'
},
PageHeader: {
back: 'பின் செல்லவும்'
}
};
13 changes: 13 additions & 0 deletions components/i18n/languages/time-picker/ms_MY.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: 'Sila pilih masa'
};

export default locale;
13 changes: 13 additions & 0 deletions components/i18n/languages/time-picker/ta_IN.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;
11 changes: 11 additions & 0 deletions components/i18n/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,21 @@ export { default as fa_IR } from './languages/fa_IR';
export { default as fi_FI } from './languages/fi_FI';
export { default as fr_BE } from './languages/fr_BE';
export { default as fr_FR } from './languages/fr_FR';
export { default as he_IL } from './languages/he_IL';
export { default as hi_IN } from './languages/hi_IN';
export { default as hr_HR } from './languages/hr_HR';
export { default as hu_HU } from './languages/hu_HU';
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 ko_KR } from './languages/ko_KR';
export { default as ku_IQ } from './languages/ku_IQ';
export { default as lv_LV } from './languages/lv_LV';
export { default as mn_MN } from './languages/mn_MN';
export { default as ms_MY } from './languages/ms_MY';
export { default as nb_NO } from './languages/nb_NO';
export { default as ne_NP } from './languages/ne_NP';
export { default as nl_BE } from './languages/nl_BE';
export { default as nl_NL } from './languages/nl_NL';
export { default as pl_PL } from './languages/pl_PL';
Expand All @@ -44,6 +54,7 @@ export { default as sk_SK } from './languages/sk_SK';
export { default as sl_SI } from './languages/sl_SI';
export { default as sr_RS } from './languages/sr_RS';
export { default as sv_SE } from './languages/sv_SE';
export { default as ta_IN } from './languages/ta_IN';
export { default as th_TH } from './languages/th_TH';
export { default as tr_TR } from './languages/tr_TR';
export { default as uk_UA } from './languages/uk_UA';
Expand Down
8 changes: 7 additions & 1 deletion docs/i18n.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Supported languages:
| Bulgarian | bg_BG |
| Catalan | ca_ES |
| Czech | cs_CZ |
| Denmark | da_DK |
| German | de_DE |
| Greek | el_GR |
| English (Global) | en_GB |
Expand All @@ -90,6 +91,10 @@ Supported languages:
| Japanese | ja_JP |
| Kannada | kn_IN |
| Korean | ko_KR |
| Kurdish | ku_IQ |
| Latvian | lv_LV |
| Malay | ms_MY |
| Mongolian | mn_MN |
| Norwegian | nb_NO |
| Nepal | ne_NP |
| Dutch (Belgium) | nl_BE |
Expand All @@ -101,6 +106,7 @@ Supported languages:
| Serbian | sr_RS |
| Slovenian | sl_SI |
| Swedish | sv_SE |
| Tamil | ta_IN |
| Thai | th_TH |
| Turkish | tr_TR |
| Russian | ru_RU |
Expand Down Expand Up @@ -148,4 +154,4 @@ registerLocaleData(en);

## Language supported by date-fns

[https://date-fns.org/docs/I18n#supported-languages](https://date-fns.org/docs/I18n#supported-languages)
[https://date-fns.org/docs/I18n#supported-languages](https://date-fns.org/docs/I18n#supported-languages)
Loading

0 comments on commit a1d6137

Please sign in to comment.