Skip to content

Commit 0df8e08

Browse files
Merge pull request #286 from sachinjnd/sachinjnd-translation-hindi
Adding hindi translation
2 parents 0318288 + df8ae1b commit 0df8e08

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

docusaurus/docs/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ npm install react-native-paper-dates --save
3636

3737
### Supported
3838

39-
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`.
39+
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`.
4040

4141
```javascript
4242
import { enGB, registerTranslation } from 'react-native-paper-dates'

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export { default as enGB } from './translations/enGB'
1515
export { default as es } from './translations/es'
1616
export { default as fr } from './translations/fr'
1717
export { default as he } from './translations/he'
18+
export { default as hi } from './translations/hi'
1819
export { default as it } from './translations/it'
1920
export { default as ko } from './translations/ko'
2021
export { default as nl } from './translations/nl'

src/translations/hi.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import type { TranslationsType } from './utils'
2+
3+
const hi: TranslationsType = {
4+
save: 'जमा करें',
5+
selectSingle: 'तारीख़ चुनें',
6+
selectMultiple: 'तारीख़ें चुनें',
7+
selectRange: 'अवधि चुनें',
8+
notAccordingToDateFormat: (inputFormat) =>
9+
`तारीख़ का प्रारूप ${inputFormat} होना चाहिए`,
10+
mustBeHigherThan: (date) => `${date} के बाद होना चाहिए`,
11+
mustBeLowerThan: (date) => `${date} से पहले होना चाहिए`,
12+
mustBeBetween: (startDate, endDate) =>
13+
`${startDate} - ${endDate} के बीच होना चाहिए`,
14+
dateIsDisabled: 'दिन की अनुमति नहीं है',
15+
previous: 'पिछला',
16+
next: 'अगला',
17+
typeInDate: 'तारीख़ लिखें',
18+
pickDateFromCalendar: 'कैलेंडर से तारीख़ चुनें',
19+
close: 'बंद करें'
20+
}
21+
export default hi

0 commit comments

Comments
 (0)