Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
Expand Down
21 changes: 21 additions & 0 deletions src/translations/it.ts
Original file line number Diff line number Diff line change
@@ -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