diff --git a/docusaurus/docs/intro.md b/docusaurus/docs/intro.md index 478be759..deb87486 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/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`. +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/ro` 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 675256a2..b763362b 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -51,6 +51,7 @@ import { cs, el, ru, + ro, } from 'react-native-paper-dates' import { useCallback, useState } from 'react' @@ -75,6 +76,7 @@ const locales: [string, TranslationsType][] = [ ['cs', cs], ['el', el], ['ru', ru], + ['ro', ro], ] locales.forEach((locale) => { diff --git a/src/index.tsx b/src/index.tsx index c1ee0c43..a920b310 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -28,3 +28,4 @@ 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' +export { default as ro } from './translations/ro' diff --git a/src/translations/ro.ts b/src/translations/ro.ts new file mode 100644 index 00000000..436dc0c4 --- /dev/null +++ b/src/translations/ro.ts @@ -0,0 +1,21 @@ +import type { TranslationsType } from './utils' + +const ro: TranslationsType = { + save: 'Salvează', + selectSingle: 'Selectează data', + selectMultiple: 'Selectează datele', + selectRange: 'Selectează perioada', + notAccordingToDateFormat: (inputFormat) => + `Formatul datei trebuie să fie ${inputFormat}`, + mustBeHigherThan: (date) => `Trebuie să fie mai târziu de ${date}`, + mustBeLowerThan: (date) => `Trebuie să fie mai devreme de ${date}`, + mustBeBetween: (startDate, endDate) => + `Trebuie să fie între ${startDate} - ${endDate}`, + dateIsDisabled: 'Data nu este permisă', + previous: 'Anterior', + next: 'Următorul', + typeInDate: 'Tipul în dată', + pickDateFromCalendar: 'Alege o dată din calendar', + close: 'Închide', +} +export default ro