v1.0 with SW PWA enabled
This commit is contained in:
2
frontend/node_modules/date-fns/locale/he/_lib/formatDistance.d.mts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/he/_lib/formatDistance.d.mts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { FormatDistanceFn } from "../../types.js";
|
||||
export declare const formatDistance: FormatDistanceFn;
|
||||
2
frontend/node_modules/date-fns/locale/he/_lib/formatDistance.d.ts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/he/_lib/formatDistance.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { FormatDistanceFn } from "../../types.js";
|
||||
export declare const formatDistance: FormatDistanceFn;
|
||||
131
frontend/node_modules/date-fns/locale/he/_lib/formatDistance.js
generated
vendored
Normal file
131
frontend/node_modules/date-fns/locale/he/_lib/formatDistance.js
generated
vendored
Normal file
@ -0,0 +1,131 @@
|
||||
"use strict";
|
||||
exports.formatDistance = void 0;
|
||||
|
||||
const formatDistanceLocale = {
|
||||
lessThanXSeconds: {
|
||||
one: "פחות משנייה",
|
||||
two: "פחות משתי שניות",
|
||||
other: "פחות מ־{{count}} שניות",
|
||||
},
|
||||
|
||||
xSeconds: {
|
||||
one: "שנייה",
|
||||
two: "שתי שניות",
|
||||
other: "{{count}} שניות",
|
||||
},
|
||||
|
||||
halfAMinute: "חצי דקה",
|
||||
|
||||
lessThanXMinutes: {
|
||||
one: "פחות מדקה",
|
||||
two: "פחות משתי דקות",
|
||||
other: "פחות מ־{{count}} דקות",
|
||||
},
|
||||
|
||||
xMinutes: {
|
||||
one: "דקה",
|
||||
two: "שתי דקות",
|
||||
other: "{{count}} דקות",
|
||||
},
|
||||
|
||||
aboutXHours: {
|
||||
one: "כשעה",
|
||||
two: "כשעתיים",
|
||||
other: "כ־{{count}} שעות",
|
||||
},
|
||||
|
||||
xHours: {
|
||||
one: "שעה",
|
||||
two: "שעתיים",
|
||||
other: "{{count}} שעות",
|
||||
},
|
||||
|
||||
xDays: {
|
||||
one: "יום",
|
||||
two: "יומיים",
|
||||
other: "{{count}} ימים",
|
||||
},
|
||||
|
||||
aboutXWeeks: {
|
||||
one: "כשבוע",
|
||||
two: "כשבועיים",
|
||||
other: "כ־{{count}} שבועות",
|
||||
},
|
||||
|
||||
xWeeks: {
|
||||
one: "שבוע",
|
||||
two: "שבועיים",
|
||||
other: "{{count}} שבועות",
|
||||
},
|
||||
|
||||
aboutXMonths: {
|
||||
one: "כחודש",
|
||||
two: "כחודשיים",
|
||||
other: "כ־{{count}} חודשים",
|
||||
},
|
||||
|
||||
xMonths: {
|
||||
one: "חודש",
|
||||
two: "חודשיים",
|
||||
other: "{{count}} חודשים",
|
||||
},
|
||||
|
||||
aboutXYears: {
|
||||
one: "כשנה",
|
||||
two: "כשנתיים",
|
||||
other: "כ־{{count}} שנים",
|
||||
},
|
||||
|
||||
xYears: {
|
||||
one: "שנה",
|
||||
two: "שנתיים",
|
||||
other: "{{count}} שנים",
|
||||
},
|
||||
|
||||
overXYears: {
|
||||
one: "יותר משנה",
|
||||
two: "יותר משנתיים",
|
||||
other: "יותר מ־{{count}} שנים",
|
||||
},
|
||||
|
||||
almostXYears: {
|
||||
one: "כמעט שנה",
|
||||
two: "כמעט שנתיים",
|
||||
other: "כמעט {{count}} שנים",
|
||||
},
|
||||
};
|
||||
|
||||
const formatDistance = (token, count, options) => {
|
||||
// Return word instead of `in one day` or `one day ago`
|
||||
if (token === "xDays" && options?.addSuffix && count <= 2) {
|
||||
if (options.comparison && options.comparison > 0) {
|
||||
return count === 1 ? "מחר" : "מחרתיים";
|
||||
}
|
||||
|
||||
return count === 1 ? "אתמול" : "שלשום";
|
||||
}
|
||||
|
||||
let result;
|
||||
|
||||
const tokenValue = formatDistanceLocale[token];
|
||||
if (typeof tokenValue === "string") {
|
||||
result = tokenValue;
|
||||
} else if (count === 1) {
|
||||
result = tokenValue.one;
|
||||
} else if (count === 2) {
|
||||
result = tokenValue.two;
|
||||
} else {
|
||||
result = tokenValue.other.replace("{{count}}", String(count));
|
||||
}
|
||||
|
||||
if (options?.addSuffix) {
|
||||
if (options.comparison && options.comparison > 0) {
|
||||
return "בעוד " + result;
|
||||
} else {
|
||||
return "לפני " + result;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
exports.formatDistance = formatDistance;
|
||||
127
frontend/node_modules/date-fns/locale/he/_lib/formatDistance.mjs
generated
vendored
Normal file
127
frontend/node_modules/date-fns/locale/he/_lib/formatDistance.mjs
generated
vendored
Normal file
@ -0,0 +1,127 @@
|
||||
const formatDistanceLocale = {
|
||||
lessThanXSeconds: {
|
||||
one: "פחות משנייה",
|
||||
two: "פחות משתי שניות",
|
||||
other: "פחות מ־{{count}} שניות",
|
||||
},
|
||||
|
||||
xSeconds: {
|
||||
one: "שנייה",
|
||||
two: "שתי שניות",
|
||||
other: "{{count}} שניות",
|
||||
},
|
||||
|
||||
halfAMinute: "חצי דקה",
|
||||
|
||||
lessThanXMinutes: {
|
||||
one: "פחות מדקה",
|
||||
two: "פחות משתי דקות",
|
||||
other: "פחות מ־{{count}} דקות",
|
||||
},
|
||||
|
||||
xMinutes: {
|
||||
one: "דקה",
|
||||
two: "שתי דקות",
|
||||
other: "{{count}} דקות",
|
||||
},
|
||||
|
||||
aboutXHours: {
|
||||
one: "כשעה",
|
||||
two: "כשעתיים",
|
||||
other: "כ־{{count}} שעות",
|
||||
},
|
||||
|
||||
xHours: {
|
||||
one: "שעה",
|
||||
two: "שעתיים",
|
||||
other: "{{count}} שעות",
|
||||
},
|
||||
|
||||
xDays: {
|
||||
one: "יום",
|
||||
two: "יומיים",
|
||||
other: "{{count}} ימים",
|
||||
},
|
||||
|
||||
aboutXWeeks: {
|
||||
one: "כשבוע",
|
||||
two: "כשבועיים",
|
||||
other: "כ־{{count}} שבועות",
|
||||
},
|
||||
|
||||
xWeeks: {
|
||||
one: "שבוע",
|
||||
two: "שבועיים",
|
||||
other: "{{count}} שבועות",
|
||||
},
|
||||
|
||||
aboutXMonths: {
|
||||
one: "כחודש",
|
||||
two: "כחודשיים",
|
||||
other: "כ־{{count}} חודשים",
|
||||
},
|
||||
|
||||
xMonths: {
|
||||
one: "חודש",
|
||||
two: "חודשיים",
|
||||
other: "{{count}} חודשים",
|
||||
},
|
||||
|
||||
aboutXYears: {
|
||||
one: "כשנה",
|
||||
two: "כשנתיים",
|
||||
other: "כ־{{count}} שנים",
|
||||
},
|
||||
|
||||
xYears: {
|
||||
one: "שנה",
|
||||
two: "שנתיים",
|
||||
other: "{{count}} שנים",
|
||||
},
|
||||
|
||||
overXYears: {
|
||||
one: "יותר משנה",
|
||||
two: "יותר משנתיים",
|
||||
other: "יותר מ־{{count}} שנים",
|
||||
},
|
||||
|
||||
almostXYears: {
|
||||
one: "כמעט שנה",
|
||||
two: "כמעט שנתיים",
|
||||
other: "כמעט {{count}} שנים",
|
||||
},
|
||||
};
|
||||
|
||||
export const formatDistance = (token, count, options) => {
|
||||
// Return word instead of `in one day` or `one day ago`
|
||||
if (token === "xDays" && options?.addSuffix && count <= 2) {
|
||||
if (options.comparison && options.comparison > 0) {
|
||||
return count === 1 ? "מחר" : "מחרתיים";
|
||||
}
|
||||
|
||||
return count === 1 ? "אתמול" : "שלשום";
|
||||
}
|
||||
|
||||
let result;
|
||||
|
||||
const tokenValue = formatDistanceLocale[token];
|
||||
if (typeof tokenValue === "string") {
|
||||
result = tokenValue;
|
||||
} else if (count === 1) {
|
||||
result = tokenValue.one;
|
||||
} else if (count === 2) {
|
||||
result = tokenValue.two;
|
||||
} else {
|
||||
result = tokenValue.other.replace("{{count}}", String(count));
|
||||
}
|
||||
|
||||
if (options?.addSuffix) {
|
||||
if (options.comparison && options.comparison > 0) {
|
||||
return "בעוד " + result;
|
||||
} else {
|
||||
return "לפני " + result;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
2
frontend/node_modules/date-fns/locale/he/_lib/formatLong.d.mts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/he/_lib/formatLong.d.mts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { FormatLong } from "../../types.js";
|
||||
export declare const formatLong: FormatLong;
|
||||
2
frontend/node_modules/date-fns/locale/he/_lib/formatLong.d.ts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/he/_lib/formatLong.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { FormatLong } from "../../types.js";
|
||||
export declare const formatLong: FormatLong;
|
||||
41
frontend/node_modules/date-fns/locale/he/_lib/formatLong.js
generated
vendored
Normal file
41
frontend/node_modules/date-fns/locale/he/_lib/formatLong.js
generated
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
"use strict";
|
||||
exports.formatLong = void 0;
|
||||
var _index = require("../../_lib/buildFormatLongFn.js");
|
||||
|
||||
const dateFormats = {
|
||||
full: "EEEE, d בMMMM y",
|
||||
long: "d בMMMM y",
|
||||
medium: "d בMMM y",
|
||||
short: "d.M.y",
|
||||
};
|
||||
|
||||
const timeFormats = {
|
||||
full: "H:mm:ss zzzz",
|
||||
long: "H:mm:ss z",
|
||||
medium: "H:mm:ss",
|
||||
short: "H:mm",
|
||||
};
|
||||
|
||||
const dateTimeFormats = {
|
||||
full: "{{date}} 'בשעה' {{time}}",
|
||||
long: "{{date}} 'בשעה' {{time}}",
|
||||
medium: "{{date}}, {{time}}",
|
||||
short: "{{date}}, {{time}}",
|
||||
};
|
||||
|
||||
const formatLong = (exports.formatLong = {
|
||||
date: (0, _index.buildFormatLongFn)({
|
||||
formats: dateFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
|
||||
time: (0, _index.buildFormatLongFn)({
|
||||
formats: timeFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
|
||||
dateTime: (0, _index.buildFormatLongFn)({
|
||||
formats: dateTimeFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
});
|
||||
39
frontend/node_modules/date-fns/locale/he/_lib/formatLong.mjs
generated
vendored
Normal file
39
frontend/node_modules/date-fns/locale/he/_lib/formatLong.mjs
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.mjs";
|
||||
|
||||
const dateFormats = {
|
||||
full: "EEEE, d בMMMM y",
|
||||
long: "d בMMMM y",
|
||||
medium: "d בMMM y",
|
||||
short: "d.M.y",
|
||||
};
|
||||
|
||||
const timeFormats = {
|
||||
full: "H:mm:ss zzzz",
|
||||
long: "H:mm:ss z",
|
||||
medium: "H:mm:ss",
|
||||
short: "H:mm",
|
||||
};
|
||||
|
||||
const dateTimeFormats = {
|
||||
full: "{{date}} 'בשעה' {{time}}",
|
||||
long: "{{date}} 'בשעה' {{time}}",
|
||||
medium: "{{date}}, {{time}}",
|
||||
short: "{{date}}, {{time}}",
|
||||
};
|
||||
|
||||
export const formatLong = {
|
||||
date: buildFormatLongFn({
|
||||
formats: dateFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
|
||||
time: buildFormatLongFn({
|
||||
formats: timeFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
|
||||
dateTime: buildFormatLongFn({
|
||||
formats: dateTimeFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
};
|
||||
2
frontend/node_modules/date-fns/locale/he/_lib/formatRelative.d.mts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/he/_lib/formatRelative.d.mts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { FormatRelativeFn } from "../../types.js";
|
||||
export declare const formatRelative: FormatRelativeFn;
|
||||
2
frontend/node_modules/date-fns/locale/he/_lib/formatRelative.d.ts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/he/_lib/formatRelative.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { FormatRelativeFn } from "../../types.js";
|
||||
export declare const formatRelative: FormatRelativeFn;
|
||||
15
frontend/node_modules/date-fns/locale/he/_lib/formatRelative.js
generated
vendored
Normal file
15
frontend/node_modules/date-fns/locale/he/_lib/formatRelative.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
exports.formatRelative = void 0;
|
||||
|
||||
const formatRelativeLocale = {
|
||||
lastWeek: "eeee 'שעבר בשעה' p",
|
||||
yesterday: "'אתמול בשעה' p",
|
||||
today: "'היום בשעה' p",
|
||||
tomorrow: "'מחר בשעה' p",
|
||||
nextWeek: "eeee 'בשעה' p",
|
||||
other: "P",
|
||||
};
|
||||
|
||||
const formatRelative = (token, _date, _baseDate, _options) =>
|
||||
formatRelativeLocale[token];
|
||||
exports.formatRelative = formatRelative;
|
||||
11
frontend/node_modules/date-fns/locale/he/_lib/formatRelative.mjs
generated
vendored
Normal file
11
frontend/node_modules/date-fns/locale/he/_lib/formatRelative.mjs
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
const formatRelativeLocale = {
|
||||
lastWeek: "eeee 'שעבר בשעה' p",
|
||||
yesterday: "'אתמול בשעה' p",
|
||||
today: "'היום בשעה' p",
|
||||
tomorrow: "'מחר בשעה' p",
|
||||
nextWeek: "eeee 'בשעה' p",
|
||||
other: "P",
|
||||
};
|
||||
|
||||
export const formatRelative = (token, _date, _baseDate, _options) =>
|
||||
formatRelativeLocale[token];
|
||||
2
frontend/node_modules/date-fns/locale/he/_lib/localize.d.mts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/he/_lib/localize.d.mts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { Localize } from "../../types.js";
|
||||
export declare const localize: Localize;
|
||||
2
frontend/node_modules/date-fns/locale/he/_lib/localize.d.ts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/he/_lib/localize.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { Localize } from "../../types.js";
|
||||
export declare const localize: Localize;
|
||||
211
frontend/node_modules/date-fns/locale/he/_lib/localize.js
generated
vendored
Normal file
211
frontend/node_modules/date-fns/locale/he/_lib/localize.js
generated
vendored
Normal file
@ -0,0 +1,211 @@
|
||||
"use strict";
|
||||
exports.localize = void 0;
|
||||
var _index = require("../../_lib/buildLocalizeFn.js");
|
||||
|
||||
const eraValues = {
|
||||
narrow: ["לפנה״ס", "לספירה"],
|
||||
abbreviated: ["לפנה״ס", "לספירה"],
|
||||
wide: ["לפני הספירה", "לספירה"],
|
||||
};
|
||||
|
||||
const quarterValues = {
|
||||
narrow: ["1", "2", "3", "4"],
|
||||
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
||||
wide: ["רבעון 1", "רבעון 2", "רבעון 3", "רבעון 4"],
|
||||
};
|
||||
|
||||
const monthValues = {
|
||||
narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
|
||||
|
||||
abbreviated: [
|
||||
"ינו׳",
|
||||
"פבר׳",
|
||||
"מרץ",
|
||||
"אפר׳",
|
||||
"מאי",
|
||||
"יוני",
|
||||
"יולי",
|
||||
"אוג׳",
|
||||
"ספט׳",
|
||||
"אוק׳",
|
||||
"נוב׳",
|
||||
"דצמ׳",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"ינואר",
|
||||
"פברואר",
|
||||
"מרץ",
|
||||
"אפריל",
|
||||
"מאי",
|
||||
"יוני",
|
||||
"יולי",
|
||||
"אוגוסט",
|
||||
"ספטמבר",
|
||||
"אוקטובר",
|
||||
"נובמבר",
|
||||
"דצמבר",
|
||||
],
|
||||
};
|
||||
|
||||
const dayValues = {
|
||||
narrow: ["א׳", "ב׳", "ג׳", "ד׳", "ה׳", "ו׳", "ש׳"],
|
||||
short: ["א׳", "ב׳", "ג׳", "ד׳", "ה׳", "ו׳", "ש׳"],
|
||||
abbreviated: [
|
||||
"יום א׳",
|
||||
"יום ב׳",
|
||||
"יום ג׳",
|
||||
"יום ד׳",
|
||||
"יום ה׳",
|
||||
"יום ו׳",
|
||||
"שבת",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"יום ראשון",
|
||||
"יום שני",
|
||||
"יום שלישי",
|
||||
"יום רביעי",
|
||||
"יום חמישי",
|
||||
"יום שישי",
|
||||
"יום שבת",
|
||||
],
|
||||
};
|
||||
|
||||
const dayPeriodValues = {
|
||||
narrow: {
|
||||
am: "לפנה״צ",
|
||||
pm: "אחה״צ",
|
||||
midnight: "חצות",
|
||||
noon: "צהריים",
|
||||
morning: "בוקר",
|
||||
afternoon: "אחר הצהריים",
|
||||
evening: "ערב",
|
||||
night: "לילה",
|
||||
},
|
||||
abbreviated: {
|
||||
am: "לפנה״צ",
|
||||
pm: "אחה״צ",
|
||||
midnight: "חצות",
|
||||
noon: "צהריים",
|
||||
morning: "בוקר",
|
||||
afternoon: "אחר הצהריים",
|
||||
evening: "ערב",
|
||||
night: "לילה",
|
||||
},
|
||||
wide: {
|
||||
am: "לפנה״צ",
|
||||
pm: "אחה״צ",
|
||||
midnight: "חצות",
|
||||
noon: "צהריים",
|
||||
morning: "בוקר",
|
||||
afternoon: "אחר הצהריים",
|
||||
evening: "ערב",
|
||||
night: "לילה",
|
||||
},
|
||||
};
|
||||
|
||||
const formattingDayPeriodValues = {
|
||||
narrow: {
|
||||
am: "לפנה״צ",
|
||||
pm: "אחה״צ",
|
||||
midnight: "חצות",
|
||||
noon: "צהריים",
|
||||
morning: "בבוקר",
|
||||
afternoon: "בצהריים",
|
||||
evening: "בערב",
|
||||
night: "בלילה",
|
||||
},
|
||||
abbreviated: {
|
||||
am: "לפנה״צ",
|
||||
pm: "אחה״צ",
|
||||
midnight: "חצות",
|
||||
noon: "צהריים",
|
||||
morning: "בבוקר",
|
||||
afternoon: "אחר הצהריים",
|
||||
evening: "בערב",
|
||||
night: "בלילה",
|
||||
},
|
||||
wide: {
|
||||
am: "לפנה״צ",
|
||||
pm: "אחה״צ",
|
||||
midnight: "חצות",
|
||||
noon: "צהריים",
|
||||
morning: "בבוקר",
|
||||
afternoon: "אחר הצהריים",
|
||||
evening: "בערב",
|
||||
night: "בלילה",
|
||||
},
|
||||
};
|
||||
|
||||
const ordinalNumber = (dirtyNumber, options) => {
|
||||
const number = Number(dirtyNumber);
|
||||
|
||||
// We only show words till 10
|
||||
if (number <= 0 || number > 10) return String(number);
|
||||
|
||||
const unit = String(options?.unit);
|
||||
|
||||
const isFemale = ["year", "hour", "minute", "second"].indexOf(unit) >= 0;
|
||||
|
||||
const male = [
|
||||
"ראשון",
|
||||
"שני",
|
||||
"שלישי",
|
||||
"רביעי",
|
||||
"חמישי",
|
||||
"שישי",
|
||||
"שביעי",
|
||||
"שמיני",
|
||||
"תשיעי",
|
||||
"עשירי",
|
||||
];
|
||||
|
||||
const female = [
|
||||
"ראשונה",
|
||||
"שנייה",
|
||||
"שלישית",
|
||||
"רביעית",
|
||||
"חמישית",
|
||||
"שישית",
|
||||
"שביעית",
|
||||
"שמינית",
|
||||
"תשיעית",
|
||||
"עשירית",
|
||||
];
|
||||
|
||||
const index = number - 1;
|
||||
return isFemale ? female[index] : male[index];
|
||||
};
|
||||
|
||||
const localize = (exports.localize = {
|
||||
ordinalNumber,
|
||||
|
||||
era: (0, _index.buildLocalizeFn)({
|
||||
values: eraValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
quarter: (0, _index.buildLocalizeFn)({
|
||||
values: quarterValues,
|
||||
defaultWidth: "wide",
|
||||
argumentCallback: (quarter) => quarter - 1,
|
||||
}),
|
||||
|
||||
month: (0, _index.buildLocalizeFn)({
|
||||
values: monthValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
day: (0, _index.buildLocalizeFn)({
|
||||
values: dayValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
dayPeriod: (0, _index.buildLocalizeFn)({
|
||||
values: dayPeriodValues,
|
||||
defaultWidth: "wide",
|
||||
formattingValues: formattingDayPeriodValues,
|
||||
defaultFormattingWidth: "wide",
|
||||
}),
|
||||
});
|
||||
209
frontend/node_modules/date-fns/locale/he/_lib/localize.mjs
generated
vendored
Normal file
209
frontend/node_modules/date-fns/locale/he/_lib/localize.mjs
generated
vendored
Normal file
@ -0,0 +1,209 @@
|
||||
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.mjs";
|
||||
|
||||
const eraValues = {
|
||||
narrow: ["לפנה״ס", "לספירה"],
|
||||
abbreviated: ["לפנה״ס", "לספירה"],
|
||||
wide: ["לפני הספירה", "לספירה"],
|
||||
};
|
||||
|
||||
const quarterValues = {
|
||||
narrow: ["1", "2", "3", "4"],
|
||||
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
||||
wide: ["רבעון 1", "רבעון 2", "רבעון 3", "רבעון 4"],
|
||||
};
|
||||
|
||||
const monthValues = {
|
||||
narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
|
||||
|
||||
abbreviated: [
|
||||
"ינו׳",
|
||||
"פבר׳",
|
||||
"מרץ",
|
||||
"אפר׳",
|
||||
"מאי",
|
||||
"יוני",
|
||||
"יולי",
|
||||
"אוג׳",
|
||||
"ספט׳",
|
||||
"אוק׳",
|
||||
"נוב׳",
|
||||
"דצמ׳",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"ינואר",
|
||||
"פברואר",
|
||||
"מרץ",
|
||||
"אפריל",
|
||||
"מאי",
|
||||
"יוני",
|
||||
"יולי",
|
||||
"אוגוסט",
|
||||
"ספטמבר",
|
||||
"אוקטובר",
|
||||
"נובמבר",
|
||||
"דצמבר",
|
||||
],
|
||||
};
|
||||
|
||||
const dayValues = {
|
||||
narrow: ["א׳", "ב׳", "ג׳", "ד׳", "ה׳", "ו׳", "ש׳"],
|
||||
short: ["א׳", "ב׳", "ג׳", "ד׳", "ה׳", "ו׳", "ש׳"],
|
||||
abbreviated: [
|
||||
"יום א׳",
|
||||
"יום ב׳",
|
||||
"יום ג׳",
|
||||
"יום ד׳",
|
||||
"יום ה׳",
|
||||
"יום ו׳",
|
||||
"שבת",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"יום ראשון",
|
||||
"יום שני",
|
||||
"יום שלישי",
|
||||
"יום רביעי",
|
||||
"יום חמישי",
|
||||
"יום שישי",
|
||||
"יום שבת",
|
||||
],
|
||||
};
|
||||
|
||||
const dayPeriodValues = {
|
||||
narrow: {
|
||||
am: "לפנה״צ",
|
||||
pm: "אחה״צ",
|
||||
midnight: "חצות",
|
||||
noon: "צהריים",
|
||||
morning: "בוקר",
|
||||
afternoon: "אחר הצהריים",
|
||||
evening: "ערב",
|
||||
night: "לילה",
|
||||
},
|
||||
abbreviated: {
|
||||
am: "לפנה״צ",
|
||||
pm: "אחה״צ",
|
||||
midnight: "חצות",
|
||||
noon: "צהריים",
|
||||
morning: "בוקר",
|
||||
afternoon: "אחר הצהריים",
|
||||
evening: "ערב",
|
||||
night: "לילה",
|
||||
},
|
||||
wide: {
|
||||
am: "לפנה״צ",
|
||||
pm: "אחה״צ",
|
||||
midnight: "חצות",
|
||||
noon: "צהריים",
|
||||
morning: "בוקר",
|
||||
afternoon: "אחר הצהריים",
|
||||
evening: "ערב",
|
||||
night: "לילה",
|
||||
},
|
||||
};
|
||||
|
||||
const formattingDayPeriodValues = {
|
||||
narrow: {
|
||||
am: "לפנה״צ",
|
||||
pm: "אחה״צ",
|
||||
midnight: "חצות",
|
||||
noon: "צהריים",
|
||||
morning: "בבוקר",
|
||||
afternoon: "בצהריים",
|
||||
evening: "בערב",
|
||||
night: "בלילה",
|
||||
},
|
||||
abbreviated: {
|
||||
am: "לפנה״צ",
|
||||
pm: "אחה״צ",
|
||||
midnight: "חצות",
|
||||
noon: "צהריים",
|
||||
morning: "בבוקר",
|
||||
afternoon: "אחר הצהריים",
|
||||
evening: "בערב",
|
||||
night: "בלילה",
|
||||
},
|
||||
wide: {
|
||||
am: "לפנה״צ",
|
||||
pm: "אחה״צ",
|
||||
midnight: "חצות",
|
||||
noon: "צהריים",
|
||||
morning: "בבוקר",
|
||||
afternoon: "אחר הצהריים",
|
||||
evening: "בערב",
|
||||
night: "בלילה",
|
||||
},
|
||||
};
|
||||
|
||||
const ordinalNumber = (dirtyNumber, options) => {
|
||||
const number = Number(dirtyNumber);
|
||||
|
||||
// We only show words till 10
|
||||
if (number <= 0 || number > 10) return String(number);
|
||||
|
||||
const unit = String(options?.unit);
|
||||
|
||||
const isFemale = ["year", "hour", "minute", "second"].indexOf(unit) >= 0;
|
||||
|
||||
const male = [
|
||||
"ראשון",
|
||||
"שני",
|
||||
"שלישי",
|
||||
"רביעי",
|
||||
"חמישי",
|
||||
"שישי",
|
||||
"שביעי",
|
||||
"שמיני",
|
||||
"תשיעי",
|
||||
"עשירי",
|
||||
];
|
||||
|
||||
const female = [
|
||||
"ראשונה",
|
||||
"שנייה",
|
||||
"שלישית",
|
||||
"רביעית",
|
||||
"חמישית",
|
||||
"שישית",
|
||||
"שביעית",
|
||||
"שמינית",
|
||||
"תשיעית",
|
||||
"עשירית",
|
||||
];
|
||||
|
||||
const index = number - 1;
|
||||
return isFemale ? female[index] : male[index];
|
||||
};
|
||||
|
||||
export const localize = {
|
||||
ordinalNumber,
|
||||
|
||||
era: buildLocalizeFn({
|
||||
values: eraValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
quarter: buildLocalizeFn({
|
||||
values: quarterValues,
|
||||
defaultWidth: "wide",
|
||||
argumentCallback: (quarter) => quarter - 1,
|
||||
}),
|
||||
|
||||
month: buildLocalizeFn({
|
||||
values: monthValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
day: buildLocalizeFn({
|
||||
values: dayValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
dayPeriod: buildLocalizeFn({
|
||||
values: dayPeriodValues,
|
||||
defaultWidth: "wide",
|
||||
formattingValues: formattingDayPeriodValues,
|
||||
defaultFormattingWidth: "wide",
|
||||
}),
|
||||
};
|
||||
2
frontend/node_modules/date-fns/locale/he/_lib/match.d.mts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/he/_lib/match.d.mts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { Match } from "../../types.js";
|
||||
export declare const match: Match;
|
||||
2
frontend/node_modules/date-fns/locale/he/_lib/match.d.ts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/he/_lib/match.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { Match } from "../../types.js";
|
||||
export declare const match: Match;
|
||||
141
frontend/node_modules/date-fns/locale/he/_lib/match.js
generated
vendored
Normal file
141
frontend/node_modules/date-fns/locale/he/_lib/match.js
generated
vendored
Normal file
@ -0,0 +1,141 @@
|
||||
"use strict";
|
||||
exports.match = void 0;
|
||||
|
||||
var _index = require("../../_lib/buildMatchFn.js");
|
||||
var _index2 = require("../../_lib/buildMatchPatternFn.js");
|
||||
|
||||
const matchOrdinalNumberPattern =
|
||||
/^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i;
|
||||
const parseOrdinalNumberPattern = /^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i;
|
||||
|
||||
const matchEraPatterns = {
|
||||
narrow: /^ל(ספירה|פנה״ס)/i,
|
||||
abbreviated: /^ל(ספירה|פנה״ס)/i,
|
||||
wide: /^ל(פני ה)?ספירה/i,
|
||||
};
|
||||
const parseEraPatterns = {
|
||||
any: [/^לפ/i, /^לס/i],
|
||||
};
|
||||
|
||||
const matchQuarterPatterns = {
|
||||
narrow: /^[1234]/i,
|
||||
abbreviated: /^q[1234]/i,
|
||||
wide: /^רבעון [1234]/i,
|
||||
};
|
||||
const parseQuarterPatterns = {
|
||||
any: [/1/i, /2/i, /3/i, /4/i],
|
||||
};
|
||||
|
||||
const matchMonthPatterns = {
|
||||
narrow: /^\d+/i,
|
||||
abbreviated: /^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i,
|
||||
wide: /^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i,
|
||||
};
|
||||
const parseMonthPatterns = {
|
||||
narrow: [
|
||||
/^1$/i,
|
||||
/^2/i,
|
||||
/^3/i,
|
||||
/^4/i,
|
||||
/^5/i,
|
||||
/^6/i,
|
||||
/^7/i,
|
||||
/^8/i,
|
||||
/^9/i,
|
||||
/^10/i,
|
||||
/^11/i,
|
||||
/^12/i,
|
||||
],
|
||||
|
||||
any: [
|
||||
/^ינ/i,
|
||||
/^פ/i,
|
||||
/^מר/i,
|
||||
/^אפ/i,
|
||||
/^מא/i,
|
||||
/^יונ/i,
|
||||
/^יול/i,
|
||||
/^אוג/i,
|
||||
/^ס/i,
|
||||
/^אוק/i,
|
||||
/^נ/i,
|
||||
/^ד/i,
|
||||
],
|
||||
};
|
||||
|
||||
const matchDayPatterns = {
|
||||
narrow: /^[אבגדהוש]׳/i,
|
||||
short: /^[אבגדהוש]׳/i,
|
||||
abbreviated: /^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i,
|
||||
wide: /^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i,
|
||||
};
|
||||
const parseDayPatterns = {
|
||||
abbreviated: [/א׳$/i, /ב׳$/i, /ג׳$/i, /ד׳$/i, /ה׳$/i, /ו׳$/i, /^ש/i],
|
||||
wide: [/ן$/i, /ני$/i, /לישי$/i, /עי$/i, /מישי$/i, /שישי$/i, /ת$/i],
|
||||
any: [/^א/i, /^ב/i, /^ג/i, /^ד/i, /^ה/i, /^ו/i, /^ש/i],
|
||||
};
|
||||
|
||||
const matchDayPeriodPatterns = {
|
||||
any: /^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i,
|
||||
};
|
||||
const parseDayPeriodPatterns = {
|
||||
any: {
|
||||
am: /^לפ/i,
|
||||
pm: /^אחה/i,
|
||||
midnight: /^ח/i,
|
||||
noon: /^צ/i,
|
||||
morning: /בוקר/i,
|
||||
afternoon: /בצ|אחר/i,
|
||||
evening: /ערב/i,
|
||||
night: /לילה/i,
|
||||
},
|
||||
};
|
||||
|
||||
const ordinalName = ["רא", "שנ", "של", "רב", "ח", "שי", "שב", "שמ", "ת", "ע"];
|
||||
|
||||
const match = (exports.match = {
|
||||
ordinalNumber: (0, _index2.buildMatchPatternFn)({
|
||||
matchPattern: matchOrdinalNumberPattern,
|
||||
parsePattern: parseOrdinalNumberPattern,
|
||||
valueCallback: (value) => {
|
||||
const number = parseInt(value, 10);
|
||||
return isNaN(number) ? ordinalName.indexOf(value) + 1 : number;
|
||||
},
|
||||
}),
|
||||
|
||||
era: (0, _index.buildMatchFn)({
|
||||
matchPatterns: matchEraPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseEraPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
quarter: (0, _index.buildMatchFn)({
|
||||
matchPatterns: matchQuarterPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseQuarterPatterns,
|
||||
defaultParseWidth: "any",
|
||||
valueCallback: (index) => index + 1,
|
||||
}),
|
||||
|
||||
month: (0, _index.buildMatchFn)({
|
||||
matchPatterns: matchMonthPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseMonthPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
day: (0, _index.buildMatchFn)({
|
||||
matchPatterns: matchDayPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseDayPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
dayPeriod: (0, _index.buildMatchFn)({
|
||||
matchPatterns: matchDayPeriodPatterns,
|
||||
defaultMatchWidth: "any",
|
||||
parsePatterns: parseDayPeriodPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
});
|
||||
138
frontend/node_modules/date-fns/locale/he/_lib/match.mjs
generated
vendored
Normal file
138
frontend/node_modules/date-fns/locale/he/_lib/match.mjs
generated
vendored
Normal file
@ -0,0 +1,138 @@
|
||||
import { buildMatchFn } from "../../_lib/buildMatchFn.mjs";
|
||||
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.mjs";
|
||||
|
||||
const matchOrdinalNumberPattern =
|
||||
/^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i;
|
||||
const parseOrdinalNumberPattern = /^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i;
|
||||
|
||||
const matchEraPatterns = {
|
||||
narrow: /^ל(ספירה|פנה״ס)/i,
|
||||
abbreviated: /^ל(ספירה|פנה״ס)/i,
|
||||
wide: /^ל(פני ה)?ספירה/i,
|
||||
};
|
||||
const parseEraPatterns = {
|
||||
any: [/^לפ/i, /^לס/i],
|
||||
};
|
||||
|
||||
const matchQuarterPatterns = {
|
||||
narrow: /^[1234]/i,
|
||||
abbreviated: /^q[1234]/i,
|
||||
wide: /^רבעון [1234]/i,
|
||||
};
|
||||
const parseQuarterPatterns = {
|
||||
any: [/1/i, /2/i, /3/i, /4/i],
|
||||
};
|
||||
|
||||
const matchMonthPatterns = {
|
||||
narrow: /^\d+/i,
|
||||
abbreviated: /^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i,
|
||||
wide: /^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i,
|
||||
};
|
||||
const parseMonthPatterns = {
|
||||
narrow: [
|
||||
/^1$/i,
|
||||
/^2/i,
|
||||
/^3/i,
|
||||
/^4/i,
|
||||
/^5/i,
|
||||
/^6/i,
|
||||
/^7/i,
|
||||
/^8/i,
|
||||
/^9/i,
|
||||
/^10/i,
|
||||
/^11/i,
|
||||
/^12/i,
|
||||
],
|
||||
|
||||
any: [
|
||||
/^ינ/i,
|
||||
/^פ/i,
|
||||
/^מר/i,
|
||||
/^אפ/i,
|
||||
/^מא/i,
|
||||
/^יונ/i,
|
||||
/^יול/i,
|
||||
/^אוג/i,
|
||||
/^ס/i,
|
||||
/^אוק/i,
|
||||
/^נ/i,
|
||||
/^ד/i,
|
||||
],
|
||||
};
|
||||
|
||||
const matchDayPatterns = {
|
||||
narrow: /^[אבגדהוש]׳/i,
|
||||
short: /^[אבגדהוש]׳/i,
|
||||
abbreviated: /^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i,
|
||||
wide: /^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i,
|
||||
};
|
||||
const parseDayPatterns = {
|
||||
abbreviated: [/א׳$/i, /ב׳$/i, /ג׳$/i, /ד׳$/i, /ה׳$/i, /ו׳$/i, /^ש/i],
|
||||
wide: [/ן$/i, /ני$/i, /לישי$/i, /עי$/i, /מישי$/i, /שישי$/i, /ת$/i],
|
||||
any: [/^א/i, /^ב/i, /^ג/i, /^ד/i, /^ה/i, /^ו/i, /^ש/i],
|
||||
};
|
||||
|
||||
const matchDayPeriodPatterns = {
|
||||
any: /^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i,
|
||||
};
|
||||
const parseDayPeriodPatterns = {
|
||||
any: {
|
||||
am: /^לפ/i,
|
||||
pm: /^אחה/i,
|
||||
midnight: /^ח/i,
|
||||
noon: /^צ/i,
|
||||
morning: /בוקר/i,
|
||||
afternoon: /בצ|אחר/i,
|
||||
evening: /ערב/i,
|
||||
night: /לילה/i,
|
||||
},
|
||||
};
|
||||
|
||||
const ordinalName = ["רא", "שנ", "של", "רב", "ח", "שי", "שב", "שמ", "ת", "ע"];
|
||||
|
||||
export const match = {
|
||||
ordinalNumber: buildMatchPatternFn({
|
||||
matchPattern: matchOrdinalNumberPattern,
|
||||
parsePattern: parseOrdinalNumberPattern,
|
||||
valueCallback: (value) => {
|
||||
const number = parseInt(value, 10);
|
||||
return isNaN(number) ? ordinalName.indexOf(value) + 1 : number;
|
||||
},
|
||||
}),
|
||||
|
||||
era: buildMatchFn({
|
||||
matchPatterns: matchEraPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseEraPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
quarter: buildMatchFn({
|
||||
matchPatterns: matchQuarterPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseQuarterPatterns,
|
||||
defaultParseWidth: "any",
|
||||
valueCallback: (index) => index + 1,
|
||||
}),
|
||||
|
||||
month: buildMatchFn({
|
||||
matchPatterns: matchMonthPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseMonthPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
day: buildMatchFn({
|
||||
matchPatterns: matchDayPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseDayPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
dayPeriod: buildMatchFn({
|
||||
matchPatterns: matchDayPeriodPatterns,
|
||||
defaultMatchWidth: "any",
|
||||
parsePatterns: parseDayPeriodPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
};
|
||||
Reference in New Issue
Block a user