diff --git a/example/src/App.tsx b/example/src/App.tsx index 7c88a444..b01ea716 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -123,7 +123,7 @@ function App() { const pastDate = new Date(new Date().setDate(new Date().getDate() - 5)) const futureDate = new Date(new Date().setDate(new Date().getDate() + 5)) - const locale = 'en' + const locale = 'en-gb' return ( <> + `Date format must be ${inputFormat}`, + mustBeHigherThan: 'Must be later then', + mustBeLowerThan: 'Must be earlier then', + mustBeBetween: 'Must be between', + dateIsDisabled: 'Day is not allowed', +} +export default enGB diff --git a/src/translations/pl.ts b/src/translations/pl.ts new file mode 100644 index 00000000..be41b161 --- /dev/null +++ b/src/translations/pl.ts @@ -0,0 +1,15 @@ +import type { TranslationsType } from './utils' + +const pl: TranslationsType = { + save: 'Zapisz', + selectSingle: 'Wybierz datę', + selectMultiple: 'Wybierz daty', + selectRange: 'Wybierz zakres', + notAccordingToDateFormat: (inputFormat: string) => + `Data musi mieć format ${inputFormat}`, + mustBeHigherThan: 'Nie wcześniej niż', + mustBeLowerThan: 'Nie później niż', + mustBeBetween: 'Pomiędzy', + dateIsDisabled: 'Niedozwolona data', +} +export default pl