Skip to content

feat: add hebrew locale support #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
106 changes: 106 additions & 0 deletions core/src/locale/he.ts
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
2 changes: 2 additions & 0 deletions core/src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import de from './de'
import en from './en'
import es from './es'
import fr from './fr'
import he from './he'
import hi from './hi'
import ja from './ja'
import ko from './ko'
Expand All @@ -23,6 +24,7 @@ const locales: Record<string, Localization> = {
da,
zh: cn,
'zh-cn': cn,
he,
ru,
fr,
hi,
Expand Down
4 changes: 4 additions & 0 deletions docs/src/.vuepress/components/cron-demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ export default {
name: 'Chinese',
value: 'zh-cn',
},
{
name: 'Hebrew',
value: 'he',
},
{
name: 'Russian (GPT-4)',
value: 'ru',
Expand Down
Loading