Skip to content

Commit 2f7f548

Browse files
author
ilank
committed
Adding hebrew translation
1 parent 6f1078c commit 2f7f548

File tree

5 files changed

+27
-5
lines changed

5 files changed

+27
-5
lines changed

src/__tests__/Time/__snapshots__/TimeInput.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ exports[`renders TimeInput 1`] = `
2020
style={
2121
[
2222
{
23-
"fontSize": 57,
2423
"textAlign": "center",
2524
"textAlignVertical": "center",
2625
"width": 96,
@@ -31,6 +30,7 @@ exports[`renders TimeInput 1`] = `
3130
"borderRadius": 8,
3231
"borderWidth": 2,
3332
"color": "rgba(33, 0, 93, 1)",
33+
"fontSize": 57,
3434
"height": 80,
3535
},
3636
]

src/__tests__/Time/__snapshots__/TimeInputs.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ exports[`renders TimeInputs 1`] = `
4343
style={
4444
[
4545
{
46-
"fontSize": 57,
4746
"textAlign": "center",
4847
"textAlignVertical": "center",
4948
"width": 96,
@@ -54,6 +53,7 @@ exports[`renders TimeInputs 1`] = `
5453
"borderRadius": 8,
5554
"borderWidth": 0,
5655
"color": "rgba(28, 27, 31, 1)",
56+
"fontSize": 57,
5757
"height": 72,
5858
},
5959
]
@@ -178,7 +178,6 @@ exports[`renders TimeInputs 1`] = `
178178
style={
179179
[
180180
{
181-
"fontSize": 57,
182181
"textAlign": "center",
183182
"textAlignVertical": "center",
184183
"width": 96,
@@ -189,6 +188,7 @@ exports[`renders TimeInputs 1`] = `
189188
"borderRadius": 8,
190189
"borderWidth": 0,
191190
"color": "rgba(28, 27, 31, 1)",
191+
"fontSize": 57,
192192
"height": 72,
193193
},
194194
]

src/__tests__/Time/__snapshots__/TimePicker.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ exports[`renders TimePicker 1`] = `
5151
style={
5252
[
5353
{
54-
"fontSize": 57,
5554
"textAlign": "center",
5655
"textAlignVertical": "center",
5756
"width": 96,
@@ -62,6 +61,7 @@ exports[`renders TimePicker 1`] = `
6261
"borderRadius": 8,
6362
"borderWidth": 0,
6463
"color": "rgba(28, 27, 31, 1)",
64+
"fontSize": 57,
6565
"height": 72,
6666
},
6767
]
@@ -186,7 +186,6 @@ exports[`renders TimePicker 1`] = `
186186
style={
187187
[
188188
{
189-
"fontSize": 57,
190189
"textAlign": "center",
191190
"textAlignVertical": "center",
192191
"width": 96,
@@ -197,6 +196,7 @@ exports[`renders TimePicker 1`] = `
197196
"borderRadius": 8,
198197
"borderWidth": 0,
199198
"color": "rgba(28, 27, 31, 1)",
199+
"fontSize": 57,
200200
"height": 72,
201201
},
202202
]

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export { default as en } from './translations/en'
1414
export { default as enGB } from './translations/enGB'
1515
export { default as es } from './translations/es'
1616
export { default as fr } from './translations/fr'
17+
export { default as he } from './translations/he'
1718
export { default as it } from './translations/it'
1819
export { default as ko } from './translations/ko'
1920
export { default as nl } from './translations/nl'

src/translations/he.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 he: TranslationsType = {
4+
save: 'שמור',
5+
selectSingle: 'בחר תאריך',
6+
selectMultiple: 'בחר תאריכים',
7+
selectRange: 'בחר טווח',
8+
notAccordingToDateFormat: (inputFormat) =>
9+
`פורמט של תאריך צריך להיות ${inputFormat}`,
10+
mustBeHigherThan: (date) => `חייב להיות אחרי ${date}`,
11+
mustBeLowerThan: (date) => `חייב להיות לפני ${date}`,
12+
mustBeBetween: (startDate, endDate) =>
13+
`חייב להיות בין ${startDate} - ${endDate}`,
14+
dateIsDisabled: 'יום לא מורשה',
15+
previous: 'הקודם',
16+
next: 'הבא',
17+
typeInDate: 'הקש תאריך',
18+
pickDateFromCalendar: 'בחר תאריך מהלוח שנה',
19+
close: 'סגור',
20+
}
21+
export default he

0 commit comments

Comments
 (0)