diff --git a/docusaurus/docs/intro.md b/docusaurus/docs/intro.md index 230096a3..478be759 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 `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`. +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`. ```javascript import { enGB, registerTranslation } from 'react-native-paper-dates' diff --git a/example/src/App.tsx b/example/src/App.tsx index 3c1a6f8f..675256a2 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -48,6 +48,9 @@ import { tr, zh, zhTW, + cs, + el, + ru, } from 'react-native-paper-dates' import { useCallback, useState } from 'react' @@ -69,6 +72,9 @@ const locales: [string, TranslationsType][] = [ ['tr', tr], ['zh', zh], ['zh-TW', zhTW], + ['cs', cs], + ['el', el], + ['ru', ru], ] locales.forEach((locale) => { diff --git a/src/index.tsx b/src/index.tsx index 293d02da..c1ee0c43 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -25,3 +25,6 @@ export { default as pt } from './translations/pt' export { default as tr } from './translations/tr' export { default as zh } from './translations/zh' export { default as zhTW } from './translations/zhTW' +export { default as cs } from './translations/cs' +export { default as el } from './translations/el' +export { default as ru } from './translations/ru' diff --git a/src/translations/cs.ts b/src/translations/cs.ts new file mode 100644 index 00000000..41324a2c --- /dev/null +++ b/src/translations/cs.ts @@ -0,0 +1,21 @@ +import type { TranslationsType } from './utils' + +const cs: TranslationsType = { + save: 'Uložit', + selectSingle: 'Vyberte datum', + selectMultiple: 'Vyberte data', + selectRange: 'Vyberte období', + notAccordingToDateFormat: (inputFormat) => + `Formát data musí být ${inputFormat}`, + mustBeHigherThan: (date) => `Musí to být později ${date}`, + mustBeLowerThan: (date) => `Musí to být dříve ${date}`, + mustBeBetween: (startDate, endDate) => + `Musí být mezi ${startDate} - ${endDate}`, + dateIsDisabled: 'Den není povolen', + previous: 'Předchozí', + next: 'další ', + typeInDate: 'Zadejte datum', + pickDateFromCalendar: 'Vyberte datum z kalendáře', + close: 'Zavřít', +} +export default cs diff --git a/src/translations/el.ts b/src/translations/el.ts new file mode 100644 index 00000000..d281863b --- /dev/null +++ b/src/translations/el.ts @@ -0,0 +1,21 @@ +import type { TranslationsType } from './utils' + +const el: TranslationsType = { + save: 'Αποθηκεύσετε', + selectSingle: 'Επιλέξτε ημερομηνία', + selectMultiple: 'Επιλέξτε ημερομηνίες', + selectRange: 'Επιλέξτε περίοδο', + notAccordingToDateFormat: (inputFormat) => + `Η μορφή ημερομηνίας πρέπει να είναι ${inputFormat}`, + mustBeHigherThan: (date) => `Πρέπει να είναι αργότερα${date}`, + mustBeLowerThan: (date) => `Πρέπει να είναι νωρίτερα τότε ${date}`, + mustBeBetween: (startDate, endDate) => + `Πρέπει να είναι μεταξύ ${startDate} - ${endDate}`, + dateIsDisabled: 'Ημέρα δεν επιτρέπεται', + previous: 'Προηγούμενος', + next: 'Επόμενο', + typeInDate: 'Πληκτρολογήστε την ημερομηνία', + pickDateFromCalendar: 'Επιλέξτε ημερομηνία από το ημερολόγιο', + close: 'Κλείσε', +} +export default el diff --git a/src/translations/ru.ts b/src/translations/ru.ts new file mode 100644 index 00000000..c145a856 --- /dev/null +++ b/src/translations/ru.ts @@ -0,0 +1,21 @@ +import type { TranslationsType } from './utils' + +const ru: TranslationsType = { + save: 'Сохранить', + selectSingle: 'Выбор даты', + selectMultiple: 'Выбор дат', + selectRange: 'Выбор диапазона', + notAccordingToDateFormat: (inputFormat) => + `Формат даты должен быть ${inputFormat}`, + mustBeHigherThan: (date) => `Должен быть позже, чем ${date}`, + mustBeLowerThan: (date) => `Должен быть ранее, чем ${date}`, + mustBeBetween: (startDate, endDate) => + `Должен быть между ${startDate} - ${endDate}`, + dateIsDisabled: 'День не разрешён', + previous: 'Предыдущий', + next: 'Следующий', + typeInDate: 'Ввод в дате', + pickDateFromCalendar: 'Выбор даты из календаря', + close: 'Закрыть', +} +export default ru