diff --git a/docusaurus/docs/intro.md b/docusaurus/docs/intro.md index 37260ef9..f4922498 100644 --- a/docusaurus/docs/intro.md +++ b/docusaurus/docs/intro.md @@ -36,7 +36,7 @@ npm install react-native-paper-dates --save ### Supported -React-Native-Paper-Dates currently supports `en/nl/de/pl/pt/ar/ko/fr/he/tr/enGB` translations. Ideally you would do this somewhere before react-native-paper-dates is used. For example, you might add the follow to your `index.js` or `app.js`. +React-Native-Paper-Dates currently supports `en/nl/de/pl/pt/ar/ko/fr/he/hi/tr/enGB` translations. Ideally you would do this somewhere before react-native-paper-dates is used. For example, you might add the follow to your `index.js` or `app.js`. ```javascript import { enGB, registerTranslation } from 'react-native-paper-dates' diff --git a/src/index.tsx b/src/index.tsx index 5016dcb1..94b81c94 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -15,6 +15,7 @@ export { default as enGB } from './translations/enGB' export { default as es } from './translations/es' export { default as fr } from './translations/fr' export { default as he } from './translations/he' +export { default as hi } from './translations/hi' export { default as it } from './translations/it' export { default as ko } from './translations/ko' export { default as nl } from './translations/nl' diff --git a/src/translations/hi.ts b/src/translations/hi.ts new file mode 100644 index 00000000..ca376dcb --- /dev/null +++ b/src/translations/hi.ts @@ -0,0 +1,21 @@ +import type { TranslationsType } from './utils' + +const hi: TranslationsType = { + save: 'जमा करें', + selectSingle: 'तारीख़ चुनें', + selectMultiple: 'तारीख़ें चुनें', + selectRange: 'अवधि चुनें', + notAccordingToDateFormat: (inputFormat) => + `तारीख़ का प्रारूप ${inputFormat} होना चाहिए`, + mustBeHigherThan: (date) => `${date} के बाद होना चाहिए`, + mustBeLowerThan: (date) => `${date} से पहले होना चाहिए`, + mustBeBetween: (startDate, endDate) => + `${startDate} - ${endDate} के बीच होना चाहिए`, + dateIsDisabled: 'दिन की अनुमति नहीं है', + previous: 'पिछला', + next: 'अगला', + typeInDate: 'तारीख़ लिखें', + pickDateFromCalendar: 'कैलेंडर से तारीख़ चुनें', + close: 'बंद करें' +} +export default hi