Skip to content

Commit ceb1b87

Browse files
committed
update doc and example
1 parent 7dad4a9 commit ceb1b87

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

docusaurus/docs/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ npm install react-native-paper-dates --save
3636

3737
### Supported
3838

39-
React-Native-Paper-Dates currently supports `ar/ca/de/en/en-GB/es/fr/he/hi/it/ko/nl/pl/pt/tr/zh/zh-TW` translations. Ideally you would do this somewhere before react-native-paper-dates is used. For example, you might add the follow to your `index.js` or `app.js`.
39+
React-Native-Paper-Dates currently supports `ar/ca/de/en/en-GB/es/fr/he/hi/it/ko/nl/pl/pt/tr/zh/zh-TW/cs/el/ru` translations. Ideally you would do this somewhere before react-native-paper-dates is used. For example, you might add the follow to your `index.js` or `app.js`.
4040

4141
```javascript
4242
import { enGB, registerTranslation } from 'react-native-paper-dates'

example/src/App.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ import {
4848
tr,
4949
zh,
5050
zhTW,
51+
cs,
52+
el,
53+
ru,
5154
} from 'react-native-paper-dates'
5255
import { useCallback, useState } from 'react'
5356

@@ -69,6 +72,9 @@ const locales: [string, TranslationsType][] = [
6972
['tr', tr],
7073
['zh', zh],
7174
['zh-TW', zhTW],
75+
['cs', cs],
76+
['el', el],
77+
['ru', ru],
7278
]
7379

7480
locales.forEach((locale) => {

src/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ export { default as pt } from './translations/pt'
2525
export { default as tr } from './translations/tr'
2626
export { default as zh } from './translations/zh'
2727
export { default as zhTW } from './translations/zhTW'
28+
export { default as cs } from './translations/cs'
29+
export { default as el } from './translations/el'
30+
export { default as ru } from './translations/ru'

0 commit comments

Comments
 (0)