diff --git a/docusaurus/docs/intro.md b/docusaurus/docs/intro.md index e7f2f8f2..935d4741 100644 --- a/docusaurus/docs/intro.md +++ b/docusaurus/docs/intro.md @@ -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' @@ -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. ::: diff --git a/example/src/App.tsx b/example/src/App.tsx index 3200a6c5..14b78272 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -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], ]