-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add hebrew locale support (#60)
* add hebrew locale support * apply review changes * apply more changes * fix: run lint-fix * docs(demo): add dir attribute --------- Co-authored-by: a5r0n <a5r0n@users.noreply.github.com> Co-authored-by: Andreas Bichinger <andreas.bichinger@gmail.com>
- Loading branch information
1 parent
833013a
commit 14b9fbd
Showing
5 changed files
with
126 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
import type { Localization } from './types' | ||
|
||
const locale: Localization = { | ||
'*': { | ||
prefix: 'בכל', | ||
suffix: '', | ||
text: 'לא ידוע', | ||
'*': { | ||
value: { text: '{{value.text}}' }, | ||
range: { text: '{{start.text}}-{{end.text}}' }, | ||
everyX: { text: 'כל {{every.value}}' }, | ||
}, | ||
month: { | ||
'*': { prefix: 'ב' }, | ||
empty: { text: 'כל חודש' }, | ||
value: { text: '{{value.alt}}' }, | ||
range: { text: '{{start.alt}}-{{end.alt}}' }, | ||
}, | ||
day: { | ||
'*': { prefix: 'ב' }, | ||
empty: { text: 'כל יום' }, | ||
value: { text: 'יום {{value.alt}} לחודש' }, | ||
noSpecific: { | ||
text: 'ללא יום מוגדר', | ||
}, | ||
}, | ||
dayOfWeek: { | ||
'*': { prefix: 'ב' }, | ||
empty: { text: 'כל יום מימות השבוע' }, | ||
value: { text: 'ימי {{value.alt}}' }, | ||
range: { text: '{{start.alt}}-{{end.alt}}' }, | ||
noSpecific: { | ||
text: 'ללא יום בשבוע מוגדר', | ||
}, | ||
}, | ||
hour: { | ||
'*': { prefix: 'ב' }, | ||
empty: { text: 'כל שעה' }, | ||
value: { text: 'שעה {{value.text}}' }, | ||
}, | ||
minute: { | ||
'*': { prefix: ':' }, | ||
empty: { text: 'כל דקה' }, | ||
}, | ||
second: { | ||
'*': { prefix: ':' }, | ||
empty: { text: 'כל שניה' }, | ||
}, | ||
}, | ||
minute: { | ||
text: 'דקה', | ||
}, | ||
hour: { | ||
text: 'שעה', | ||
minute: { | ||
'*': { | ||
prefix: 'ב', | ||
suffix: 'דקות', | ||
}, | ||
empty: { text: 'כל' }, | ||
}, | ||
}, | ||
day: { | ||
text: 'יום', | ||
}, | ||
week: { | ||
text: 'שבוע', | ||
}, | ||
month: { | ||
text: 'חודש', | ||
dayOfWeek: { | ||
'*': { prefix: 'ו' }, | ||
}, | ||
}, | ||
year: { | ||
text: 'שנה', | ||
dayOfWeek: { | ||
'*': { prefix: 'ו' }, | ||
}, | ||
}, | ||
|
||
//quartz format | ||
'q-second': { | ||
text: 'שניה', | ||
}, | ||
'q-minute': { | ||
text: 'דקה', | ||
second: { | ||
'*': { | ||
prefix: 'ב', | ||
suffix: 'שניות', | ||
}, | ||
empty: { text: 'כל' }, | ||
}, | ||
}, | ||
'q-hour': { | ||
text: 'שעה', | ||
minute: { | ||
'*': { | ||
prefix: 'ב', | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
export default locale |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters