Skip to content

Commit e111026

Browse files
Merge pull request #225 from efkan/Turkish-translation-file-added
Turkish translation file added
2 parents 8f5df1a + 8716c3e commit e111026

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/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/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 {

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ export { default as pl } from './translations/pl'
1313
export { default as pt } from './translations/pt'
1414
export { default as enGB } from './translations/enGB'
1515
export { default as de } from './translations/de'
16+
export { default as tr } from './translations/tr'

src/translations/tr.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 tr: TranslationsType = {
4+
save: 'Kaydet',
5+
selectSingle: 'Tarih seç',
6+
selectMultiple: 'Tarihleri seç',
7+
selectRange: 'Periyot seç',
8+
notAccordingToDateFormat: (inputFormat) =>
9+
`Tarih formatı ${inputFormat} olmalı`,
10+
mustBeHigherThan: (date) => `${date} tarihinden sonra olmalı`,
11+
mustBeLowerThan: (date) => `${date} tarihinden önce olmalı`,
12+
mustBeBetween: (startDate, endDate) =>
13+
`${startDate} - ${endDate} tarihleri arasında olmalı`,
14+
dateIsDisabled: 'Gün seçilemez',
15+
previous: 'Önceki',
16+
next: 'Sonraki',
17+
typeInDate: 'Tarihi yazın',
18+
pickDateFromCalendar: 'Takvimden tarih seçin',
19+
close: 'Kapat',
20+
}
21+
export default tr

0 commit comments

Comments
 (0)