mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
Added Hindi Locale
This commit is contained in:
parent
5483e2c5ca
commit
0e42cbf7e6
@ -2,6 +2,7 @@
|
||||
282159468 <282159468@qq.com>
|
||||
778758944 <778758944@qq.com>
|
||||
Aaron Planell López <aaronplanell@gmail.com>
|
||||
Aashutosh Rathi <aashutoshrathi@gmail.com>
|
||||
Aditya Padhi <aditya.padhi@outlook.com>
|
||||
Adrian Dimitrov <dimitrov.adrian@gmail.com>
|
||||
Alan Braithwaite <asbraithwaite@gmail.com>
|
||||
|
2
components/calendar/locale/hi_IN.tsx
Normal file
2
components/calendar/locale/hi_IN.tsx
Normal file
@ -0,0 +1,2 @@
|
||||
import hi_IN from '../../date-picker/locale/hi_IN';
|
||||
export default hi_IN;
|
19
components/date-picker/locale/hi_IN.tsx
Normal file
19
components/date-picker/locale/hi_IN.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import CalendarLocale from 'rc-calendar/lib/locale/hi_IN';
|
||||
import TimePickerLocale from '../../time-picker/locale/hi_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;
|
File diff suppressed because it is too large
Load Diff
@ -31,6 +31,7 @@ import fiFI from '../fi_FI';
|
||||
import frBE from '../fr_BE';
|
||||
import frFR from '../fr_FR';
|
||||
import heIL from '../he_IL';
|
||||
import hiIN from '../hi_IN';
|
||||
import huHU from '../hu_HU';
|
||||
import isIS from '../is_IS';
|
||||
import itIT from '../it_IT';
|
||||
@ -76,6 +77,7 @@ const locales = [
|
||||
frBE,
|
||||
frFR,
|
||||
heIL,
|
||||
hiIN,
|
||||
huHU,
|
||||
isIS,
|
||||
itIT,
|
||||
|
50
components/locale-provider/hi_IN.tsx
Normal file
50
components/locale-provider/hi_IN.tsx
Normal file
@ -0,0 +1,50 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/hi_IN';
|
||||
import DatePicker from '../date-picker/locale/hi_IN';
|
||||
import TimePicker from '../time-picker/locale/hi_IN';
|
||||
import Calendar from '../calendar/locale/hi_IN';
|
||||
|
||||
export default {
|
||||
locale: 'hi',
|
||||
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: 'फ़ाइल पूर्वावलोकन',
|
||||
},
|
||||
};
|
5
components/time-picker/locale/hi_IN.tsx
Normal file
5
components/time-picker/locale/hi_IN.tsx
Normal file
@ -0,0 +1,5 @@
|
||||
const locale = {
|
||||
placeholder: 'समय का चयन करें',
|
||||
};
|
||||
|
||||
export default locale;
|
@ -44,6 +44,7 @@ Supported languages:
|
||||
|French (Belgium)|fr_BE|
|
||||
|French (France)|fr_FR|
|
||||
|Hebrew|he_IL|
|
||||
|Hindi|hi_IN|
|
||||
|Hungarian|hu_HU|
|
||||
|Indonesian|id_ID|
|
||||
|Italian|it_IT|
|
||||
|
@ -42,6 +42,7 @@ return (
|
||||
|法语(比利时)|fr_BE|
|
||||
|法语|fr_FR|
|
||||
|希伯来语|he_IL|
|
||||
|印地语|hi_IN|
|
||||
|匈牙利|hu_HU|
|
||||
|冰岛语|is_IS|
|
||||
|印度尼西亚语|id_ID|
|
||||
|
Loading…
Reference in New Issue
Block a user