File tree Expand file tree Collapse file tree 5 files changed +37
-1
lines changed Expand file tree Collapse file tree 5 files changed +37
-1
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ function App() {
123123 const pastDate = new Date ( new Date ( ) . setDate ( new Date ( ) . getDate ( ) - 5 ) )
124124 const futureDate = new Date ( new Date ( ) . setDate ( new Date ( ) . getDate ( ) + 5 ) )
125125
126- const locale = 'en'
126+ const locale = 'en-gb '
127127 return (
128128 < >
129129 < ScrollView
Original file line number Diff line number Diff line change 11import {
22 en ,
33 nl ,
4+ pl ,
5+ enGB ,
46 registerTranslation ,
57 // @ts -ignore TODO: try to fix expo to work with local library
68} from 'react-native-paper-dates'
79registerTranslation ( 'en' , en )
810registerTranslation ( 'nl' , nl )
11+ registerTranslation ( 'pl' , pl )
12+ registerTranslation ( 'en-GB' , enGB )
913
1014import App from './App'
1115export default App
Original file line number Diff line number Diff line change @@ -9,3 +9,5 @@ export type { TranslationsType } from './translations/utils'
99export { registerTranslation , getTranslation } from './translations/utils'
1010export { default as nl } from './translations/nl'
1111export { default as en } from './translations/en'
12+ export { default as pl } from './translations/pl'
13+ export { default as enGB } from './translations/enGB'
Original file line number Diff line number Diff line change 1+ import type { TranslationsType } from './utils'
2+
3+ const enGB : TranslationsType = {
4+ save : 'Save' ,
5+ selectSingle : 'Select date' ,
6+ selectMultiple : 'Select dates' ,
7+ selectRange : 'Select period' ,
8+ notAccordingToDateFormat : ( inputFormat : string ) =>
9+ `Date format must be ${ inputFormat } ` ,
10+ mustBeHigherThan : 'Must be later then' ,
11+ mustBeLowerThan : 'Must be earlier then' ,
12+ mustBeBetween : 'Must be between' ,
13+ dateIsDisabled : 'Day is not allowed' ,
14+ }
15+ export default enGB
Original file line number Diff line number Diff line change 1+ import type { TranslationsType } from './utils'
2+
3+ const pl : TranslationsType = {
4+ save : 'Zapisz' ,
5+ selectSingle : 'Wybierz datę' ,
6+ selectMultiple : 'Wybierz daty' ,
7+ selectRange : 'Wybierz zakres' ,
8+ notAccordingToDateFormat : ( inputFormat : string ) =>
9+ `Data musi mieć format ${ inputFormat } ` ,
10+ mustBeHigherThan : 'Nie wcześniej niż' ,
11+ mustBeLowerThan : 'Nie później niż' ,
12+ mustBeBetween : 'Pomiędzy' ,
13+ dateIsDisabled : 'Niedozwolona data' ,
14+ }
15+ export default pl
You can’t perform that action at this time.
0 commit comments