diff --git a/README.md b/README.md index fb4ee4ce..6be3a3c9 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ Currently we have en/nl/de/pl/pt/ar/ko/fr translations but it's really easy to a // e.g in your index.js import { // en, + // it, // fr, // nl, // de, @@ -75,6 +76,7 @@ import { registerTranslation, } from 'react-native-paper-dates' // registerTranslation('en', en) +// registerTranslation('it', it) // registerTranslation('fr', fr) // registerTranslation('nl', nl) // registerTranslation('pl', pl) diff --git a/src/translations/it.ts b/src/translations/it.ts new file mode 100644 index 00000000..c870836b --- /dev/null +++ b/src/translations/it.ts @@ -0,0 +1,21 @@ +import type { TranslationsType } from './utils' + +const it: TranslationsType = { + save: 'Salva', + selectSingle: 'Seleziona la data', + selectMultiple: 'Seleziona le date', + selectRange: 'Seleziona il periodo', + notAccordingToDateFormat: (inputFormat) => + `Il formato della data deve essere ${inputFormat}`, + mustBeHigherThan: (date) => `Deve essere successivo a ${date}`, + mustBeLowerThan: (date) => `Deve essere precedente a ${date}`, + mustBeBetween: (startDate, endDate) => + `Deve essere compreso tra ${startDate} - ${endDate}`, + dateIsDisabled: 'Il giorno non รจ consentito', + previous: 'Precedente', + next: 'Successivo', + typeInDate: 'Digita la data', + pickDateFromCalendar: 'Scegli data dal calendario', + close: 'Chiudi', +} +export default it