From 6701e67fe7e841d1acbba67747b7c61ba9da6548 Mon Sep 17 00:00:00 2001 From: Diego Date: Wed, 30 Aug 2023 19:34:43 +0200 Subject: [PATCH 1/3] Added ES and IT translations missing in APP --- example/src/App.tsx | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) 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], ] From 2f054dc74b7ae5f68f500233799777dd966c748f Mon Sep 17 00:00:00 2001 From: Diego Date: Thu, 31 Aug 2023 17:01:22 +0200 Subject: [PATCH 2/3] Updated intro docs languages support --- docusaurus/docs/intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/intro.md b/docusaurus/docs/intro.md index e7f2f8f2..48a4ab92 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' From ebc8bf7043410eddf560879a3fff03a221f7983e Mon Sep 17 00:00:00 2001 From: Diego Date: Thu, 31 Aug 2023 17:17:18 +0200 Subject: [PATCH 3/3] Updated info note docs --- docusaurus/docs/intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/intro.md b/docusaurus/docs/intro.md index 48a4ab92..935d4741 100644 --- a/docusaurus/docs/intro.md +++ b/docusaurus/docs/intro.md @@ -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. :::