Browse Source

Added Hindi Locale

pull/14003/head
aashutoshrathi 6 years ago
committed by 偏右
parent
commit
0e42cbf7e6
  1. 1
      AUTHORS.txt
  2. 2
      components/calendar/locale/hi_IN.tsx
  3. 19
      components/date-picker/locale/hi_IN.tsx
  4. 22775
      components/locale-provider/__tests__/__snapshots__/index.test.js.snap
  5. 2
      components/locale-provider/__tests__/index.test.js
  6. 50
      components/locale-provider/hi_IN.tsx
  7. 5
      components/time-picker/locale/hi_IN.tsx
  8. 1
      docs/react/i18n.en-US.md
  9. 1
      docs/react/i18n.zh-CN.md

1
AUTHORS.txt

@ -2,6 +2,7 @@
282159468 <282159468@qq.com> 282159468 <282159468@qq.com>
778758944 <778758944@qq.com> 778758944 <778758944@qq.com>
Aaron Planell López <aaronplanell@gmail.com> Aaron Planell López <aaronplanell@gmail.com>
Aashutosh Rathi <aashutoshrathi@gmail.com>
Aditya Padhi <aditya.padhi@outlook.com> Aditya Padhi <aditya.padhi@outlook.com>
Adrian Dimitrov <dimitrov.adrian@gmail.com> Adrian Dimitrov <dimitrov.adrian@gmail.com>
Alan Braithwaite <asbraithwaite@gmail.com> Alan Braithwaite <asbraithwaite@gmail.com>

2
components/calendar/locale/hi_IN.tsx

@ -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

@ -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;

22775
components/locale-provider/__tests__/__snapshots__/index.test.js.snap

File diff suppressed because it is too large

2
components/locale-provider/__tests__/index.test.js

@ -31,6 +31,7 @@ import fiFI from '../fi_FI';
import frBE from '../fr_BE'; import frBE from '../fr_BE';
import frFR from '../fr_FR'; import frFR from '../fr_FR';
import heIL from '../he_IL'; import heIL from '../he_IL';
import hiIN from '../hi_IN';
import huHU from '../hu_HU'; import huHU from '../hu_HU';
import isIS from '../is_IS'; import isIS from '../is_IS';
import itIT from '../it_IT'; import itIT from '../it_IT';
@ -76,6 +77,7 @@ const locales = [
frBE, frBE,
frFR, frFR,
heIL, heIL,
hiIN,
huHU, huHU,
isIS, isIS,
itIT, itIT,

50
components/locale-provider/hi_IN.tsx

@ -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

@ -0,0 +1,5 @@
const locale = {
placeholder: 'समय का चयन करें',
};
export default locale;

1
docs/react/i18n.en-US.md

@ -44,6 +44,7 @@ Supported languages:
|French (Belgium)|fr_BE| |French (Belgium)|fr_BE|
|French (France)|fr_FR| |French (France)|fr_FR|
|Hebrew|he_IL| |Hebrew|he_IL|
|Hindi|hi_IN|
|Hungarian|hu_HU| |Hungarian|hu_HU|
|Indonesian|id_ID| |Indonesian|id_ID|
|Italian|it_IT| |Italian|it_IT|

1
docs/react/i18n.zh-CN.md

@ -42,6 +42,7 @@ return (
|法语(比利时)|fr_BE| |法语(比利时)|fr_BE|
|法语|fr_FR| |法语|fr_FR|
|希伯来语|he_IL| |希伯来语|he_IL|
|印地语|hi_IN|
|匈牙利|hu_HU| |匈牙利|hu_HU|
|冰岛语|is_IS| |冰岛语|is_IS|
|印度尼西亚语|id_ID| |印度尼西亚语|id_ID|

Loading…
Cancel
Save