You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
2.1 KiB
78 lines
2.1 KiB
// Hebrew [he] |
|
import dayjs from '../index'; |
|
var texts = { |
|
s: 'מספר שניות', |
|
ss: '%d שניות', |
|
m: 'דקה', |
|
mm: '%d דקות', |
|
h: 'שעה', |
|
hh: '%d שעות', |
|
hh2: 'שעתיים', |
|
d: 'יום', |
|
dd: '%d ימים', |
|
dd2: 'יומיים', |
|
M: 'חודש', |
|
MM: '%d חודשים', |
|
MM2: 'חודשיים', |
|
y: 'שנה', |
|
yy: '%d שנים', |
|
yy2: 'שנתיים' |
|
}; |
|
|
|
function relativeTimeFormatter(number, withoutSuffix, key) { |
|
var text = texts[key + (number === 2 ? '2' : '')] || texts[key]; |
|
return text.replace('%d', number); |
|
} |
|
|
|
var locale = { |
|
name: 'he', |
|
weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), |
|
weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), |
|
weekdaysMin: 'א׳_ב׳_ג׳_ד׳_ה׳_ו_ש׳'.split('_'), |
|
months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'), |
|
monthsShort: 'ינו_פבר_מרץ_אפר_מאי_יונ_יול_אוג_ספט_אוק_נוב_דצמ'.split('_'), |
|
relativeTime: { |
|
future: 'בעוד %s', |
|
past: 'לפני %s', |
|
s: relativeTimeFormatter, |
|
m: relativeTimeFormatter, |
|
mm: relativeTimeFormatter, |
|
h: relativeTimeFormatter, |
|
hh: relativeTimeFormatter, |
|
d: relativeTimeFormatter, |
|
dd: relativeTimeFormatter, |
|
M: relativeTimeFormatter, |
|
MM: relativeTimeFormatter, |
|
y: relativeTimeFormatter, |
|
yy: relativeTimeFormatter |
|
}, |
|
ordinal: function ordinal(n) { |
|
return n; |
|
}, |
|
format: { |
|
LT: 'HH:mm', |
|
LTS: 'HH:mm:ss', |
|
L: 'DD/MM/YYYY', |
|
LL: 'D [ב]MMMM YYYY', |
|
LLL: 'D [ב]MMMM YYYY HH:mm', |
|
LLLL: 'dddd, D [ב]MMMM YYYY HH:mm', |
|
l: 'D/M/YYYY', |
|
ll: 'D MMM YYYY', |
|
lll: 'D MMM YYYY HH:mm', |
|
llll: 'ddd, D MMM YYYY HH:mm' |
|
}, |
|
formats: { |
|
LT: 'HH:mm', |
|
LTS: 'HH:mm:ss', |
|
L: 'DD/MM/YYYY', |
|
LL: 'D [ב]MMMM YYYY', |
|
LLL: 'D [ב]MMMM YYYY HH:mm', |
|
LLLL: 'dddd, D [ב]MMMM YYYY HH:mm', |
|
l: 'D/M/YYYY', |
|
ll: 'D MMM YYYY', |
|
lll: 'D MMM YYYY HH:mm', |
|
llll: 'ddd, D MMM YYYY HH:mm' |
|
} |
|
}; |
|
dayjs.locale(locale, null, true); |
|
export default locale; |