Skip to content

Commit f6a4759

Browse files
fix: export german translations
1 parent 83ce211 commit f6a4759

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,24 @@ npm install react-native-paper-dates --save
5757

5858
## Import some localized strings
5959
Ideally you do this somewhere in your `index.js` before `react-native-paper-dates` is used.
60-
Currently we only have en/nl/pl/pt 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 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
6464
import {
6565
// en,
6666
// nl,
67+
// de,
6768
// pl,
69+
// pt,
6870
enGB,
6971
registerTranslation,
7072
} from 'react-native-paper-dates'
7173
// registerTranslation('en', en)
7274
// registerTranslation('nl', nl)
7375
// registerTranslation('pl', pl)
7476
// registerTranslation('pt', pt)
77+
// registerTranslation('de', de)
7578
registerTranslation('en-GB', enGB)
7679
```
7780

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ export { default as en } from './translations/en'
1212
export { default as pl } from './translations/pl'
1313
export { default as pt } from './translations/pt'
1414
export { default as enGB } from './translations/enGB'
15+
export { default as de } from './translations/de'

0 commit comments

Comments
 (0)