Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ES and IT translations missing in APP #318

Merged
merged 3 commits into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docusaurus/docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ npm install react-native-paper-dates --save

### Supported

React-Native-Paper-Dates currently supports `en/nl/de/pl/pt/ar/ko/fr/he/hi/tr/enGB/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`.
React-Native-Paper-Dates currently supports `ar/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`.

```javascript
import { enGB, registerTranslation } from 'react-native-paper-dates'
Expand Down Expand Up @@ -71,7 +71,7 @@ registerTranslation('pl', {

:::info Note

If a language is not supported. Consider creating a pull request so that it can officially be supported.
If a language is not supported, consider creating a pull request so that it can officially be supported.

:::

Expand Down
22 changes: 13 additions & 9 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,38 +28,42 @@ import {
DatePickerModal,
TimePickerModal,
DatePickerInput,
registerTranslation,
TranslationsType,
ar,
de,
en,
enGB,
es,
fr,
he,
hi,
it,
ko,
nl,
pl,
pt,
registerTranslation,
tr,
TranslationsType,
zh,
zhTW,
} from 'react-native-paper-dates'
import { useCallback, useState } from 'react'

const locales: [string, TranslationsType][] = [
['en', en],
['nl', nl],
['de', de],
['pl', pl],
['pt', pt],
['ar', ar],
['ko', ko],
['de', de],
['en', en],
['en-GB', enGB],
['es', es],
['fr', fr],
['he', he],
['hi', hi],
['it', it],
['ko', ko],
['nl', nl],
['pl', pl],
['pt', pt],
['tr', tr],
['en-GB', enGB],
['zh', zh],
['zh-TW', zhTW],
]
Expand Down