Skip to content

Commit aeafe13

Browse files
committed
added supported language - romanian
1 parent a664627 commit aeafe13

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

docusaurus/docs/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ npm install react-native-paper-dates --save
3636

3737
### Supported
3838

39-
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`.
39+
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`.
4040

4141
```javascript
4242
import { enGB, registerTranslation } from 'react-native-paper-dates'

example/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ import {
5151
cs,
5252
el,
5353
ru,
54+
ro,
5455
} from 'react-native-paper-dates'
5556
import { useCallback, useState } from 'react'
5657

@@ -75,6 +76,7 @@ const locales: [string, TranslationsType][] = [
7576
['cs', cs],
7677
['el', el],
7778
['ru', ru],
79+
['ro', ro],
7880
]
7981

8082
locales.forEach((locale) => {

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ export { default as zhTW } from './translations/zhTW'
2828
export { default as cs } from './translations/cs'
2929
export { default as el } from './translations/el'
3030
export { default as ru } from './translations/ru'
31+
export { default as ro } from './translations/ro'

src/translations/ro.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import type { TranslationsType } from './utils'
2+
3+
const ro: TranslationsType = {
4+
save: 'Salvează',
5+
selectSingle: 'Selectează data',
6+
selectMultiple: 'Selectează datele',
7+
selectRange: 'Selectează perioada',
8+
notAccordingToDateFormat: (inputFormat) =>
9+
`Formatul datei trebuie să fie ${inputFormat}`,
10+
mustBeHigherThan: (date) => `Trebuie să fie mai târziu de ${date}`,
11+
mustBeLowerThan: (date) => `Trebuie să fie mai devreme de ${date}`,
12+
mustBeBetween: (startDate, endDate) =>
13+
`Trebuie să fie între ${startDate} - ${endDate}`,
14+
dateIsDisabled: 'Data nu este permisă',
15+
previous: 'Anterior',
16+
next: 'Următorul',
17+
typeInDate: 'Tipul în dată',
18+
pickDateFromCalendar: 'Alege o dată din calendar',
19+
close: 'Închide',
20+
}
21+
export default ro

0 commit comments

Comments
 (0)