Skip to content

Commit c810e87

Browse files
Merge pull request #191 from Angelk90/patch-1
Add Italian translations
2 parents 552e020 + 868c1a1 commit c810e87

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Currently we have en/nl/de/pl/pt/ar/ko/fr translations but it's really easy to a
6363
// e.g in your index.js
6464
import {
6565
// en,
66+
// it,
6667
// fr,
6768
// nl,
6869
// de,
@@ -75,6 +76,7 @@ import {
7576
registerTranslation,
7677
} from 'react-native-paper-dates'
7778
// registerTranslation('en', en)
79+
// registerTranslation('it', it)
7880
// registerTranslation('fr', fr)
7981
// registerTranslation('nl', nl)
8082
// registerTranslation('pl', pl)

src/translations/it.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 it: TranslationsType = {
4+
save: 'Salva',
5+
selectSingle: 'Seleziona la data',
6+
selectMultiple: 'Seleziona le date',
7+
selectRange: 'Seleziona il periodo',
8+
notAccordingToDateFormat: (inputFormat) =>
9+
`Il formato della data deve essere ${inputFormat}`,
10+
mustBeHigherThan: (date) => `Deve essere successivo a ${date}`,
11+
mustBeLowerThan: (date) => `Deve essere precedente a ${date}`,
12+
mustBeBetween: (startDate, endDate) =>
13+
`Deve essere compreso tra ${startDate} - ${endDate}`,
14+
dateIsDisabled: 'Il giorno non è consentito',
15+
previous: 'Precedente',
16+
next: 'Successivo',
17+
typeInDate: 'Digita la data',
18+
pickDateFromCalendar: 'Scegli data dal calendario',
19+
close: 'Chiudi',
20+
}
21+
export default it

0 commit comments

Comments
 (0)