#13576 - Kannada locale added (kn_IN)

This commit is contained in:
Rahul Gurung 2018-12-21 23:19:19 +05:30 committed by 偏右
parent 5c266355ec
commit 1a4fce7d0f
8 changed files with 81 additions and 0 deletions

View File

@ -284,6 +284,7 @@ Pyroboomka <qwaarty@mail.ru>
Qiaosen Huang <joesonw@gmail.com>
Qingrong Ke <keqingrong1992@gmail.com>
Rafael Cosman <rafaelcosman@alumni.stanford.edu>
Rahul Gurung <gurungrahul2@gmail.com>
Rallets <rallet@rallets.com>
Ramsés Moreno <ramses@cuatromedios.com>
Randy <randypriv@gmail.com>

View File

@ -0,0 +1,2 @@
import kn_IN from '../../date-picker/locale/kn_IN';
export default kn_IN;

View File

@ -0,0 +1,19 @@
import CalendarLocale from 'rc-calendar/lib/locale/kn_IN';
import TimePickerLocale from '../../time-picker/locale/kn_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;

View File

@ -35,6 +35,7 @@ import huHU from '../hu_HU';
import isIS from '../is_IS';
import itIT from '../it_IT';
import jaJP from '../ja_JP';
import knIN from '../kn_IN';
import koKR from '../ko_KR';
import kuIQ from '../ku_IQ';
import mnMN from '../mn_MN';
@ -79,6 +80,7 @@ const locales = [
isIS,
itIT,
jaJP,
knIN,
koKR,
kuIQ,
mnMN,

View File

@ -0,0 +1,50 @@
import Pagination from 'rc-pagination/lib/locale/kn_IN';
import DatePicker from '../date-picker/locale/kn_IN';
import TimePicker from '../time-picker/locale/kn_IN';
import Calendar from '../calendar/locale/kn_IN';
export default {
locale: 'kn',
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: 'ವಿಷಯಗಳು',
},
Select: {
notFoundContent: 'ದೊರೆತಿಲ್ಲ',
},
Upload: {
uploading: 'ಏರಿಸಿ...',
removeFile: 'ಫೈಲ್ ತೆಗೆದುಹಾಕಿ',
uploadError: 'ಏರಿಸುವ ದೋಷ',
previewFile: 'ಫೈಲ್ ಮುನ್ನೋಟ',
},
};

View File

@ -0,0 +1,5 @@
const locale = {
placeholder: 'ಸಮಯ ಆಯ್ಕೆಮಾಡಿ',
};
export default locale;

View File

@ -49,6 +49,7 @@ Supported languages:
|Italian|it_IT|
|Icelandic|is_IS|
|Japanese|ja_JP|
|Kannada|kn_IN|
|Korean|ko_KR|
|Norwegian|nb_NO|
|Nepal|ne_NP|

View File

@ -47,6 +47,7 @@ return (
|印度尼西亚语|id_ID|
|意大利语|it_IT|
|日语|ja_JP|
|卡纳达语|kn_IN|
|韩语/朝鲜语|ko_KR|
|挪威|nb_NO|
|尼泊尔语|ne_NP|