File tree Expand file tree Collapse file tree 7 files changed +1737
-1985
lines changed Expand file tree Collapse file tree 7 files changed +1737
-1985
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ npm install react-native-paper-dates --save
5757
5858## Import some localized strings
5959Ideally you do this somewhere in your ` index.js ` before ` react-native-paper-dates ` is used.
60- Currently we have en/nl/de/pl/pt/ar translations but it's really easy to add one extra since it are only some labels and error messages.
60+ Currently we have en/nl/de/pl/pt/ar/ko/fr translations but it's really easy to add one extra since it are only some labels and error messages.
6161
6262``` tsx
6363// e.g in your index.js
@@ -68,7 +68,9 @@ import {
6868 // de,
6969 // pl,
7070 // pt,
71- // ar,
71+ // ar,
72+ // ko
73+ // fr
7274 enGB ,
7375 registerTranslation ,
7476} from ' react-native-paper-dates'
@@ -79,6 +81,8 @@ import {
7981// registerTranslation('pt', pt)
8082// registerTranslation('de', de)
8183// registerTranslation('ar', ar)
84+ // registerTranslation('ko', ko)
85+ // registerTranslation('fr', fr)
8286registerTranslation (' en-GB' , enGB )
8387```
8488
Original file line number Diff line number Diff line change 1212 "test" : " jest"
1313 },
1414 "dependencies" : {
15- "expo" : " ^44 .0.0" ,
16- "expo-splash-screen" : " ~0.14 .1" ,
17- "react" : " 17 .0.1 " ,
18- "react-dom" : " 17 .0.1 " ,
19- "react-native" : " ^0.66 .4" ,
20- "react-native-paper" : " ^4.11.1 " ,
21- "react-native-web" : " ^0.17.5 "
15+ "expo" : " ^46 .0.0" ,
16+ "expo-splash-screen" : " ~0.16 .1" ,
17+ "react" : " 18 .0.0 " ,
18+ "react-dom" : " 18 .0.0 " ,
19+ "react-native" : " 0.69 .4" ,
20+ "react-native-paper" : " ^4.12.4 " ,
21+ "react-native-web" : " ~0.18.7 "
2222 },
2323 "devDependencies" : {
24- "@babel/core" : " ^7.12.9 " ,
24+ "@babel/core" : " ^7.18.6 " ,
2525 "@babel/runtime" : " ^7.9.6" ,
2626 "babel-plugin-module-resolver" : " ^4.0.0" ,
27- "babel-preset-expo" : " 9.0.1 " ,
28- "expo-cli" : " ^5 .0.3 "
27+ "babel-preset-expo" : " ~9.2.0 " ,
28+ "expo-cli" : " ^6 .0.5 "
2929 }
3030}
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
1010// registerTranslation('nl', nl)
1111// registerTranslation('pl', pl)
1212// registerTranslation('pt', pt)
13+
1314registerTranslation ( 'en-GB' , enGB )
1415
1516import App from './App'
You can’t perform that action at this time.
0 commit comments