Skip to content

Commit 0e42cbf

Browse files
aashutoshrathiafc163
authored andcommitted
Added Hindi Locale
1 parent 5483e2c commit 0e42cbf

File tree

9 files changed

+14006
-8850
lines changed

9 files changed

+14006
-8850
lines changed

Diff for: AUTHORS.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
282159468 <[email protected]>
33
778758944 <[email protected]>
44
Aaron Planell López <[email protected]>
5+
Aashutosh Rathi <[email protected]>
56
Aditya Padhi <[email protected]>
67
Adrian Dimitrov <[email protected]>
78
Alan Braithwaite <[email protected]>

Diff for: components/calendar/locale/hi_IN.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import hi_IN from '../../date-picker/locale/hi_IN';
2+
export default hi_IN;

Diff for: components/date-picker/locale/hi_IN.tsx

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import CalendarLocale from 'rc-calendar/lib/locale/hi_IN';
2+
import TimePickerLocale from '../../time-picker/locale/hi_IN';
3+
4+
// Merge into a locale object
5+
const locale = {
6+
lang: {
7+
placeholder: 'तारीख़ चुनें',
8+
rangePlaceholder: ['प्रारंभ तिथि', 'समाप्ति तिथि'],
9+
...CalendarLocale,
10+
},
11+
timePickerLocale: {
12+
...TimePickerLocale,
13+
},
14+
};
15+
16+
// All settings at:
17+
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
18+
19+
export default locale;

0 commit comments

Comments
 (0)