Skip to content

Commit

Permalink
feat(module:i18n): support for Georgian locale (#4491)
Browse files Browse the repository at this point in the history
* feat(module:i18n): support for Georgian locale

* fix(module:i18n): Update i18n.zh-CN.md

Update Georgian translate

* fix(module:i18n): fix date format
  • Loading branch information
levart authored and Yadong Xie committed Dec 2, 2019
1 parent 5f72e67 commit d96ebe0
Show file tree
Hide file tree
Showing 8 changed files with 169 additions and 0 deletions.
36 changes: 36 additions & 0 deletions components/i18n/languages/calendar/ka_GE.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: 'D.M.YYYY',
dayFormat: 'D',
dateTimeFormat: 'D.M.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/ka_GE.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/ka_GE';
import TimePickerLocale from '../time-picker/ka_GE';

// 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;
67 changes: 67 additions & 0 deletions components/i18n/languages/ka_GE.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/**
* @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/ka_GE';
import DatePicker from './date-picker/ka_GE';
import Pagination from './pagination/ka_GE';
import TimePicker from './time-picker/ka_GE';

export default {
locale: 'ka',
Pagination,
DatePicker,
TimePicker,
Calendar,
global: {
placeholder: 'აირჩიეთ'
},
Table: {
filterTitle: 'ფილტრი',
filterConfirm: 'დიახ',
filterReset: 'განულება',
selectAll: 'აირჩიეთ მიმდინარე გვერდი',
selectInvert: 'გვერდის მიმართულების შეცვლა',
sortTitle: 'სორტირება'
},
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: 'უკან'
}
};
23 changes: 23 additions & 0 deletions components/i18n/languages/pagination/ka_GE.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 გვერდი'
};
13 changes: 13 additions & 0 deletions components/i18n/languages/time-picker/ka_GE.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;
1 change: 1 addition & 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 ka_GE } from './languages/ka_GE';
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';
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 @@ -89,6 +89,7 @@ Supported languages:
| Italian | it_IT |
| Icelandic | is_IS |
| Japanese | ja_JP |
| Georgian | ka_GE |
| Kannada | kn_IN |
| Korean | ko_KR |
| Kurdish | ku_IQ |
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 @@ -88,6 +88,7 @@ switchLanguage() {
| 印度尼西亚语 | id_ID |
| 意大利语 | it_IT |
| 日语 | ja_JP |
| 格鲁吉亚语 | ka_GE |
| 卡纳达语 | kn_IN |
| 韩语/朝鲜语 | ko_KR |
| 库尔德语 | ku_IQ |
Expand Down

0 comments on commit d96ebe0

Please sign in to comment.