Skip to content
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
2 changes: 1 addition & 1 deletion 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 `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'
Expand Down
2 changes: 2 additions & 0 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import {
cs,
el,
ru,
ro,
} from 'react-native-paper-dates'
import { useCallback, useState } from 'react'

Expand All @@ -75,6 +76,7 @@ const locales: [string, TranslationsType][] = [
['cs', cs],
['el', el],
['ru', ru],
['ro', ro],
]

locales.forEach((locale) => {
Expand Down
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
21 changes: 21 additions & 0 deletions src/translations/ro.ts
Original file line number Diff line number Diff line change
@@ -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