amis-rpc-design/node_modules/dayjs/esm/locale/he.js
2023-10-07 19:42:30 +08:00

78 lines
2.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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;