aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/locale/he
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-06-28 17:26:46 -0700
committerPinapelz <yukais@pinapelz.com>2025-06-28 17:43:56 -0700
commite4fa1e69e7ebfb627c7198fd1a9881e9327ec4d4 (patch)
tree06284a538a6008eca75051399e47db4e5d50301c /node_modules/date-fns/locale/he
initial commit: scaffolding
Diffstat (limited to 'node_modules/date-fns/locale/he')
-rw-r--r--node_modules/date-fns/locale/he/_lib/formatDistance/index.js115
-rw-r--r--node_modules/date-fns/locale/he/_lib/formatLong/index.js43
-rw-r--r--node_modules/date-fns/locale/he/_lib/formatRelative/index.js20
-rw-r--r--node_modules/date-fns/locale/he/_lib/localize/index.js136
-rw-r--r--node_modules/date-fns/locale/he/_lib/match/index.js109
-rw-r--r--node_modules/date-fns/locale/he/index.d.ts4
-rw-r--r--node_modules/date-fns/locale/he/index.js35
-rw-r--r--node_modules/date-fns/locale/he/index.js.flow35
-rw-r--r--node_modules/date-fns/locale/he/package.json5
9 files changed, 502 insertions, 0 deletions
diff --git a/node_modules/date-fns/locale/he/_lib/formatDistance/index.js b/node_modules/date-fns/locale/he/_lib/formatDistance/index.js
new file mode 100644
index 0000000..5271518
--- /dev/null
+++ b/node_modules/date-fns/locale/he/_lib/formatDistance/index.js
@@ -0,0 +1,115 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var 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}} שנים'
+ }
+};
+var formatDistance = function formatDistance(token, count, options) {
+ // Return word instead of `in one day` or `one day ago`
+ if (token === 'xDays' && options !== null && options !== void 0 && options.addSuffix && count <= 2) {
+ if (options.comparison && options.comparison > 0) {
+ return count === 1 ? 'מחר' : 'מחרתיים';
+ }
+ return count === 1 ? 'אתמול' : 'שלשום';
+ }
+ var result;
+ var 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 !== null && options !== void 0 && options.addSuffix) {
+ if (options.comparison && options.comparison > 0) {
+ return 'בעוד ' + result;
+ } else {
+ return 'לפני ' + result;
+ }
+ }
+ return result;
+};
+var _default = formatDistance;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/he/_lib/formatLong/index.js b/node_modules/date-fns/locale/he/_lib/formatLong/index.js
new file mode 100644
index 0000000..337eb9a
--- /dev/null
+++ b/node_modules/date-fns/locale/he/_lib/formatLong/index.js
@@ -0,0 +1,43 @@
+"use strict";
+
+var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js"));
+var dateFormats = {
+ full: 'EEEE, d בMMMM y',
+ long: 'd בMMMM y',
+ medium: 'd בMMM y',
+ short: 'd.M.y'
+};
+var timeFormats = {
+ full: 'H:mm:ss zzzz',
+ long: 'H:mm:ss z',
+ medium: 'H:mm:ss',
+ short: 'H:mm'
+};
+var dateTimeFormats = {
+ full: "{{date}} 'בשעה' {{time}}",
+ long: "{{date}} 'בשעה' {{time}}",
+ medium: '{{date}}, {{time}}',
+ short: '{{date}}, {{time}}'
+};
+var formatLong = {
+ date: (0, _index.default)({
+ formats: dateFormats,
+ defaultWidth: 'full'
+ }),
+ time: (0, _index.default)({
+ formats: timeFormats,
+ defaultWidth: 'full'
+ }),
+ dateTime: (0, _index.default)({
+ formats: dateTimeFormats,
+ defaultWidth: 'full'
+ })
+};
+var _default = formatLong;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/he/_lib/formatRelative/index.js b/node_modules/date-fns/locale/he/_lib/formatRelative/index.js
new file mode 100644
index 0000000..c66c4c9
--- /dev/null
+++ b/node_modules/date-fns/locale/he/_lib/formatRelative/index.js
@@ -0,0 +1,20 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var formatRelativeLocale = {
+ lastWeek: "eeee 'שעבר בשעה' p",
+ yesterday: "'אתמול בשעה' p",
+ today: "'היום בשעה' p",
+ tomorrow: "'מחר בשעה' p",
+ nextWeek: "eeee 'בשעה' p",
+ other: 'P'
+};
+var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
+ return formatRelativeLocale[token];
+};
+var _default = formatRelative;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/he/_lib/localize/index.js b/node_modules/date-fns/locale/he/_lib/localize/index.js
new file mode 100644
index 0000000..27ca6e7
--- /dev/null
+++ b/node_modules/date-fns/locale/he/_lib/localize/index.js
@@ -0,0 +1,136 @@
+"use strict";
+
+var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js"));
+var eraValues = {
+ narrow: ['לפנה״ס', 'לספירה'],
+ abbreviated: ['לפנה״ס', 'לספירה'],
+ wide: ['לפני הספירה', 'לספירה']
+};
+var quarterValues = {
+ narrow: ['1', '2', '3', '4'],
+ abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
+ wide: ['רבעון 1', 'רבעון 2', 'רבעון 3', 'רבעון 4']
+};
+var monthValues = {
+ narrow: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
+ abbreviated: ['ינו׳', 'פבר׳', 'מרץ', 'אפר׳', 'מאי', 'יוני', 'יולי', 'אוג׳', 'ספט׳', 'אוק׳', 'נוב׳', 'דצמ׳'],
+ wide: ['ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר']
+};
+var dayValues = {
+ narrow: ['א׳', 'ב׳', 'ג׳', 'ד׳', 'ה׳', 'ו׳', 'ש׳'],
+ short: ['א׳', 'ב׳', 'ג׳', 'ד׳', 'ה׳', 'ו׳', 'ש׳'],
+ abbreviated: ['יום א׳', 'יום ב׳', 'יום ג׳', 'יום ד׳', 'יום ה׳', 'יום ו׳', 'שבת'],
+ wide: ['יום ראשון', 'יום שני', 'יום שלישי', 'יום רביעי', 'יום חמישי', 'יום שישי', 'יום שבת']
+};
+var 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: 'לילה'
+ }
+};
+var 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: 'בלילה'
+ }
+};
+var ordinalNumber = function ordinalNumber(dirtyNumber, options) {
+ var number = Number(dirtyNumber);
+
+ // We only show words till 10
+ if (number <= 0 || number > 10) return String(number);
+ var unit = String(options === null || options === void 0 ? void 0 : options.unit);
+ var isFemale = ['year', 'hour', 'minute', 'second'].indexOf(unit) >= 0;
+ var male = ['ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שביעי', 'שמיני', 'תשיעי', 'עשירי'];
+ var female = ['ראשונה', 'שנייה', 'שלישית', 'רביעית', 'חמישית', 'שישית', 'שביעית', 'שמינית', 'תשיעית', 'עשירית'];
+ var index = number - 1;
+ return isFemale ? female[index] : male[index];
+};
+var localize = {
+ ordinalNumber: ordinalNumber,
+ era: (0, _index.default)({
+ values: eraValues,
+ defaultWidth: 'wide'
+ }),
+ quarter: (0, _index.default)({
+ values: quarterValues,
+ defaultWidth: 'wide',
+ argumentCallback: function argumentCallback(quarter) {
+ return quarter - 1;
+ }
+ }),
+ month: (0, _index.default)({
+ values: monthValues,
+ defaultWidth: 'wide'
+ }),
+ day: (0, _index.default)({
+ values: dayValues,
+ defaultWidth: 'wide'
+ }),
+ dayPeriod: (0, _index.default)({
+ values: dayPeriodValues,
+ defaultWidth: 'wide',
+ formattingValues: formattingDayPeriodValues,
+ defaultFormattingWidth: 'wide'
+ })
+};
+var _default = localize;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/he/_lib/match/index.js b/node_modules/date-fns/locale/he/_lib/match/index.js
new file mode 100644
index 0000000..37001c7
--- /dev/null
+++ b/node_modules/date-fns/locale/he/_lib/match/index.js
@@ -0,0 +1,109 @@
+"use strict";
+
+var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js"));
+var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js"));
+var matchOrdinalNumberPattern = /^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i;
+var parseOrdinalNumberPattern = /^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i;
+var matchEraPatterns = {
+ narrow: /^ל(ספירה|פנה״ס)/i,
+ abbreviated: /^ל(ספירה|פנה״ס)/i,
+ wide: /^ל(פני ה)?ספירה/i
+};
+var parseEraPatterns = {
+ any: [/^לפ/i, /^לס/i]
+};
+var matchQuarterPatterns = {
+ narrow: /^[1234]/i,
+ abbreviated: /^q[1234]/i,
+ wide: /^רבעון [1234]/i
+};
+var parseQuarterPatterns = {
+ any: [/1/i, /2/i, /3/i, /4/i]
+};
+var matchMonthPatterns = {
+ narrow: /^\d+/i,
+ abbreviated: /^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i,
+ wide: /^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i
+};
+var 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]
+};
+var matchDayPatterns = {
+ narrow: /^[אבגדהוש]׳/i,
+ short: /^[אבגדהוש]׳/i,
+ abbreviated: /^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i,
+ wide: /^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i
+};
+var 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]
+};
+var matchDayPeriodPatterns = {
+ any: /^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i
+};
+var parseDayPeriodPatterns = {
+ any: {
+ am: /^לפ/i,
+ pm: /^אחה/i,
+ midnight: /^ח/i,
+ noon: /^צ/i,
+ morning: /בוקר/i,
+ afternoon: /בצ|אחר/i,
+ evening: /ערב/i,
+ night: /לילה/i
+ }
+};
+var ordinalName = ['רא', 'שנ', 'של', 'רב', 'ח', 'שי', 'שב', 'שמ', 'ת', 'ע'];
+var match = {
+ ordinalNumber: (0, _index2.default)({
+ matchPattern: matchOrdinalNumberPattern,
+ parsePattern: parseOrdinalNumberPattern,
+ valueCallback: function valueCallback(value) {
+ var number = parseInt(value, 10);
+ return isNaN(number) ? ordinalName.indexOf(value) + 1 : number;
+ }
+ }),
+ era: (0, _index.default)({
+ matchPatterns: matchEraPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseEraPatterns,
+ defaultParseWidth: 'any'
+ }),
+ quarter: (0, _index.default)({
+ matchPatterns: matchQuarterPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseQuarterPatterns,
+ defaultParseWidth: 'any',
+ valueCallback: function valueCallback(index) {
+ return index + 1;
+ }
+ }),
+ month: (0, _index.default)({
+ matchPatterns: matchMonthPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseMonthPatterns,
+ defaultParseWidth: 'any'
+ }),
+ day: (0, _index.default)({
+ matchPatterns: matchDayPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseDayPatterns,
+ defaultParseWidth: 'any'
+ }),
+ dayPeriod: (0, _index.default)({
+ matchPatterns: matchDayPeriodPatterns,
+ defaultMatchWidth: 'any',
+ parsePatterns: parseDayPeriodPatterns,
+ defaultParseWidth: 'any'
+ })
+};
+var _default = match;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/he/index.d.ts b/node_modules/date-fns/locale/he/index.d.ts
new file mode 100644
index 0000000..33d6042
--- /dev/null
+++ b/node_modules/date-fns/locale/he/index.d.ts
@@ -0,0 +1,4 @@
+// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
+
+import { he } from 'date-fns/locale'
+export default he
diff --git a/node_modules/date-fns/locale/he/index.js b/node_modules/date-fns/locale/he/index.js
new file mode 100644
index 0000000..1f70d6e
--- /dev/null
+++ b/node_modules/date-fns/locale/he/index.js
@@ -0,0 +1,35 @@
+"use strict";
+
+var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js"));
+var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js"));
+var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js"));
+var _index4 = _interopRequireDefault(require("./_lib/localize/index.js"));
+var _index5 = _interopRequireDefault(require("./_lib/match/index.js"));
+/**
+ * @type {Locale}
+ * @category Locales
+ * @summary Hebrew locale.
+ * @language Hebrew
+ * @iso-639-2 heb
+ * @author Nir Lahad [@nirlah]{@link https://github.com/nirlah}
+ */
+var locale = {
+ code: 'he',
+ formatDistance: _index.default,
+ formatLong: _index2.default,
+ formatRelative: _index3.default,
+ localize: _index4.default,
+ match: _index5.default,
+ options: {
+ weekStartsOn: 0 /* Sunday */,
+ firstWeekContainsDate: 1
+ }
+};
+var _default = locale;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/he/index.js.flow b/node_modules/date-fns/locale/he/index.js.flow
new file mode 100644
index 0000000..b9dfe66
--- /dev/null
+++ b/node_modules/date-fns/locale/he/index.js.flow
@@ -0,0 +1,35 @@
+// @flow
+// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
+
+export type Locale = {
+ code?: string,
+ formatDistance?: (...args: Array<any>) => any,
+ formatRelative?: (...args: Array<any>) => any,
+ localize?: {
+ ordinalNumber: (...args: Array<any>) => any,
+ era: (...args: Array<any>) => any,
+ quarter: (...args: Array<any>) => any,
+ month: (...args: Array<any>) => any,
+ day: (...args: Array<any>) => any,
+ dayPeriod: (...args: Array<any>) => any,
+ },
+ formatLong?: {
+ date: (...args: Array<any>) => any,
+ time: (...args: Array<any>) => any,
+ dateTime: (...args: Array<any>) => any,
+ },
+ match?: {
+ ordinalNumber: (...args: Array<any>) => any,
+ era: (...args: Array<any>) => any,
+ quarter: (...args: Array<any>) => any,
+ month: (...args: Array<any>) => any,
+ day: (...args: Array<any>) => any,
+ dayPeriod: (...args: Array<any>) => any,
+ },
+ options?: {
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
+ firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
+ },
+}
+
+declare module.exports: Locale
diff --git a/node_modules/date-fns/locale/he/package.json b/node_modules/date-fns/locale/he/package.json
new file mode 100644
index 0000000..b778e53
--- /dev/null
+++ b/node_modules/date-fns/locale/he/package.json
@@ -0,0 +1,5 @@
+{
+ "sideEffects": false,
+ "module": "../../esm/locale/he/index.js",
+ "typings": "../../typings.d.ts"
+} \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage