main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
export declare const formatDistance: FormatDistanceFn;

View File

@@ -0,0 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
export declare const formatDistance: FormatDistanceFn;

122
node_modules/date-fns/locale/ka/_lib/formatDistance.js generated vendored Normal file
View File

@@ -0,0 +1,122 @@
"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
past: "{{count}} წამზე ნაკლები ხნის წინ",
present: "{{count}} წამზე ნაკლები",
future: "{{count}} წამზე ნაკლებში",
},
xSeconds: {
past: "{{count}} წამის წინ",
present: "{{count}} წამი",
future: "{{count}} წამში",
},
halfAMinute: {
past: "ნახევარი წუთის წინ",
present: "ნახევარი წუთი",
future: "ნახევარი წუთში",
},
lessThanXMinutes: {
past: "{{count}} წუთზე ნაკლები ხნის წინ",
present: "{{count}} წუთზე ნაკლები",
future: "{{count}} წუთზე ნაკლებში",
},
xMinutes: {
past: "{{count}} წუთის წინ",
present: "{{count}} წუთი",
future: "{{count}} წუთში",
},
aboutXHours: {
past: "დაახლოებით {{count}} საათის წინ",
present: "დაახლოებით {{count}} საათი",
future: "დაახლოებით {{count}} საათში",
},
xHours: {
past: "{{count}} საათის წინ",
present: "{{count}} საათი",
future: "{{count}} საათში",
},
xDays: {
past: "{{count}} დღის წინ",
present: "{{count}} დღე",
future: "{{count}} დღეში",
},
aboutXWeeks: {
past: "დაახლოებით {{count}} კვირას წინ",
present: "დაახლოებით {{count}} კვირა",
future: "დაახლოებით {{count}} კვირაში",
},
xWeeks: {
past: "{{count}} კვირას კვირა",
present: "{{count}} კვირა",
future: "{{count}} კვირაში",
},
aboutXMonths: {
past: "დაახლოებით {{count}} თვის წინ",
present: "დაახლოებით {{count}} თვე",
future: "დაახლოებით {{count}} თვეში",
},
xMonths: {
past: "{{count}} თვის წინ",
present: "{{count}} თვე",
future: "{{count}} თვეში",
},
aboutXYears: {
past: "დაახლოებით {{count}} წლის წინ",
present: "დაახლოებით {{count}} წელი",
future: "დაახლოებით {{count}} წელში",
},
xYears: {
past: "{{count}} წლის წინ",
present: "{{count}} წელი",
future: "{{count}} წელში",
},
overXYears: {
past: "{{count}} წელზე მეტი ხნის წინ",
present: "{{count}} წელზე მეტი",
future: "{{count}} წელზე მეტი ხნის შემდეგ",
},
almostXYears: {
past: "თითქმის {{count}} წლის წინ",
present: "თითქმის {{count}} წელი",
future: "თითქმის {{count}} წელში",
},
};
const formatDistance = (token, count, options) => {
let result;
const tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (
options?.addSuffix &&
options.comparison &&
options.comparison > 0
) {
result = tokenValue.future.replace("{{count}}", String(count));
} else if (options?.addSuffix) {
result = tokenValue.past.replace("{{count}}", String(count));
} else {
result = tokenValue.present.replace("{{count}}", String(count));
}
return result;
};
exports.formatDistance = formatDistance;

118
node_modules/date-fns/locale/ka/_lib/formatDistance.mjs generated vendored Normal file
View File

@@ -0,0 +1,118 @@
const formatDistanceLocale = {
lessThanXSeconds: {
past: "{{count}} წამზე ნაკლები ხნის წინ",
present: "{{count}} წამზე ნაკლები",
future: "{{count}} წამზე ნაკლებში",
},
xSeconds: {
past: "{{count}} წამის წინ",
present: "{{count}} წამი",
future: "{{count}} წამში",
},
halfAMinute: {
past: "ნახევარი წუთის წინ",
present: "ნახევარი წუთი",
future: "ნახევარი წუთში",
},
lessThanXMinutes: {
past: "{{count}} წუთზე ნაკლები ხნის წინ",
present: "{{count}} წუთზე ნაკლები",
future: "{{count}} წუთზე ნაკლებში",
},
xMinutes: {
past: "{{count}} წუთის წინ",
present: "{{count}} წუთი",
future: "{{count}} წუთში",
},
aboutXHours: {
past: "დაახლოებით {{count}} საათის წინ",
present: "დაახლოებით {{count}} საათი",
future: "დაახლოებით {{count}} საათში",
},
xHours: {
past: "{{count}} საათის წინ",
present: "{{count}} საათი",
future: "{{count}} საათში",
},
xDays: {
past: "{{count}} დღის წინ",
present: "{{count}} დღე",
future: "{{count}} დღეში",
},
aboutXWeeks: {
past: "დაახლოებით {{count}} კვირას წინ",
present: "დაახლოებით {{count}} კვირა",
future: "დაახლოებით {{count}} კვირაში",
},
xWeeks: {
past: "{{count}} კვირას კვირა",
present: "{{count}} კვირა",
future: "{{count}} კვირაში",
},
aboutXMonths: {
past: "დაახლოებით {{count}} თვის წინ",
present: "დაახლოებით {{count}} თვე",
future: "დაახლოებით {{count}} თვეში",
},
xMonths: {
past: "{{count}} თვის წინ",
present: "{{count}} თვე",
future: "{{count}} თვეში",
},
aboutXYears: {
past: "დაახლოებით {{count}} წლის წინ",
present: "დაახლოებით {{count}} წელი",
future: "დაახლოებით {{count}} წელში",
},
xYears: {
past: "{{count}} წლის წინ",
present: "{{count}} წელი",
future: "{{count}} წელში",
},
overXYears: {
past: "{{count}} წელზე მეტი ხნის წინ",
present: "{{count}} წელზე მეტი",
future: "{{count}} წელზე მეტი ხნის შემდეგ",
},
almostXYears: {
past: "თითქმის {{count}} წლის წინ",
present: "თითქმის {{count}} წელი",
future: "თითქმის {{count}} წელში",
},
};
export const formatDistance = (token, count, options) => {
let result;
const tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (
options?.addSuffix &&
options.comparison &&
options.comparison > 0
) {
result = tokenValue.future.replace("{{count}}", String(count));
} else if (options?.addSuffix) {
result = tokenValue.past.replace("{{count}}", String(count));
} else {
result = tokenValue.present.replace("{{count}}", String(count));
}
return result;
};

View File

@@ -0,0 +1,2 @@
import type { FormatLong } from "../../types.js";
export declare const formatLong: FormatLong;

2
node_modules/date-fns/locale/ka/_lib/formatLong.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import type { FormatLong } from "../../types.js";
export declare const formatLong: FormatLong;

41
node_modules/date-fns/locale/ka/_lib/formatLong.js generated vendored Normal file
View File

@@ -0,0 +1,41 @@
"use strict";
exports.formatLong = void 0;
var _index = require("../../_lib/buildFormatLongFn.js");
const dateFormats = {
full: "EEEE, do MMMM, y",
long: "do, MMMM, y",
medium: "d, MMM, y",
short: "dd/MM/yyyy",
};
const timeFormats = {
full: "h:mm:ss a zzzz",
long: "h:mm:ss a z",
medium: "h:mm:ss a",
short: "h:mm a",
};
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
node_modules/date-fns/locale/ka/_lib/formatLong.mjs generated vendored Normal file
View File

@@ -0,0 +1,39 @@
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.mjs";
const dateFormats = {
full: "EEEE, do MMMM, y",
long: "do, MMMM, y",
medium: "d, MMM, y",
short: "dd/MM/yyyy",
};
const timeFormats = {
full: "h:mm:ss a zzzz",
long: "h:mm:ss a z",
medium: "h:mm:ss a",
short: "h:mm a",
};
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",
}),
};

View File

@@ -0,0 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
export declare const formatRelative: FormatRelativeFn;

View File

@@ -0,0 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
export declare const formatRelative: FormatRelativeFn;

15
node_modules/date-fns/locale/ka/_lib/formatRelative.js generated vendored Normal file
View 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;

View 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
node_modules/date-fns/locale/ka/_lib/localize.d.mts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import type { Localize } from "../../types.js";
export declare const localize: Localize;

2
node_modules/date-fns/locale/ka/_lib/localize.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import type { Localize } from "../../types.js";
export declare const localize: Localize;

189
node_modules/date-fns/locale/ka/_lib/localize.js generated vendored Normal file
View File

@@ -0,0 +1,189 @@
"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: ["1-ლი კვ", "2-ე კვ", "3-ე კვ", "4-ე კვ"],
wide: ["1-ლი კვარტალი", "2-ე კვარტალი", "3-ე კვარტალი", "4-ე კვარტალი"],
};
// Note: in English, the names of days of the week and months are capitalized.
// If you are making a new locale based on this one, check if the same is true for the language you're working on.
// Generally, formatted dates should look like they are in the middle of a sentence,
// e.g. in Spanish language the weekdays and months should be in the lowercase.
const monthValues = {
narrow: [
"ია",
"თე",
"მა",
"აპ",
"მს",
"ვნ",
"ვლ",
"აგ",
"სე",
"ოქ",
"ნო",
"დე",
],
abbreviated: [
"იან",
"თებ",
"მარ",
"აპრ",
"მაი",
"ივნ",
"ივლ",
"აგვ",
"სექ",
"ოქტ",
"ნოე",
"დეკ",
],
wide: [
"იანვარი",
"თებერვალი",
"მარტი",
"აპრილი",
"მაისი",
"ივნისი",
"ივლისი",
"აგვისტო",
"სექტემბერი",
"ოქტომბერი",
"ნოემბერი",
"დეკემბერი",
],
};
const dayValues = {
narrow: ["კვ", "ორ", "სა", "ოთ", "ხუ", "პა", "შა"],
short: ["კვი", "ორშ", "სამ", "ოთხ", "ხუთ", "პარ", "შაბ"],
abbreviated: ["კვი", "ორშ", "სამ", "ოთხ", "ხუთ", "პარ", "შაბ"],
wide: [
"კვირა",
"ორშაბათი",
"სამშაბათი",
"ოთხშაბათი",
"ხუთშაბათი",
"პარასკევი",
"შაბათი",
],
};
const dayPeriodValues = {
narrow: {
am: "a",
pm: "p",
midnight: "შუაღამე",
noon: "შუადღე",
morning: "დილა",
afternoon: "საღამო",
evening: "საღამო",
night: "ღამე",
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "შუაღამე",
noon: "შუადღე",
morning: "დილა",
afternoon: "საღამო",
evening: "საღამო",
night: "ღამე",
},
wide: {
am: "a.m.",
pm: "p.m.",
midnight: "შუაღამე",
noon: "შუადღე",
morning: "დილა",
afternoon: "საღამო",
evening: "საღამო",
night: "ღამე",
},
};
const formattingDayPeriodValues = {
narrow: {
am: "a",
pm: "p",
midnight: "შუაღამით",
noon: "შუადღისას",
morning: "დილით",
afternoon: "ნაშუადღევს",
evening: "საღამოს",
night: "ღამით",
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "შუაღამით",
noon: "შუადღისას",
morning: "დილით",
afternoon: "ნაშუადღევს",
evening: "საღამოს",
night: "ღამით",
},
wide: {
am: "a.m.",
pm: "p.m.",
midnight: "შუაღამით",
noon: "შუადღისას",
morning: "დილით",
afternoon: "ნაშუადღევს",
evening: "საღამოს",
night: "ღამით",
},
};
const ordinalNumber = (dirtyNumber) => {
const number = Number(dirtyNumber);
if (number === 1) {
return number + "-ლი";
}
return number + "-ე";
};
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",
}),
});

187
node_modules/date-fns/locale/ka/_lib/localize.mjs generated vendored Normal file
View File

@@ -0,0 +1,187 @@
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.mjs";
const eraValues = {
narrow: ["ჩ.წ-მდე", "ჩ.წ"],
abbreviated: ["ჩვ.წ-მდე", "ჩვ.წ"],
wide: ["ჩვენს წელთაღრიცხვამდე", "ჩვენი წელთაღრიცხვით"],
};
const quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["1-ლი კვ", "2-ე კვ", "3-ე კვ", "4-ე კვ"],
wide: ["1-ლი კვარტალი", "2-ე კვარტალი", "3-ე კვარტალი", "4-ე კვარტალი"],
};
// Note: in English, the names of days of the week and months are capitalized.
// If you are making a new locale based on this one, check if the same is true for the language you're working on.
// Generally, formatted dates should look like they are in the middle of a sentence,
// e.g. in Spanish language the weekdays and months should be in the lowercase.
const monthValues = {
narrow: [
"ია",
"თე",
"მა",
"აპ",
"მს",
"ვნ",
"ვლ",
"აგ",
"სე",
"ოქ",
"ნო",
"დე",
],
abbreviated: [
"იან",
"თებ",
"მარ",
"აპრ",
"მაი",
"ივნ",
"ივლ",
"აგვ",
"სექ",
"ოქტ",
"ნოე",
"დეკ",
],
wide: [
"იანვარი",
"თებერვალი",
"მარტი",
"აპრილი",
"მაისი",
"ივნისი",
"ივლისი",
"აგვისტო",
"სექტემბერი",
"ოქტომბერი",
"ნოემბერი",
"დეკემბერი",
],
};
const dayValues = {
narrow: ["კვ", "ორ", "სა", "ოთ", "ხუ", "პა", "შა"],
short: ["კვი", "ორშ", "სამ", "ოთხ", "ხუთ", "პარ", "შაბ"],
abbreviated: ["კვი", "ორშ", "სამ", "ოთხ", "ხუთ", "პარ", "შაბ"],
wide: [
"კვირა",
"ორშაბათი",
"სამშაბათი",
"ოთხშაბათი",
"ხუთშაბათი",
"პარასკევი",
"შაბათი",
],
};
const dayPeriodValues = {
narrow: {
am: "a",
pm: "p",
midnight: "შუაღამე",
noon: "შუადღე",
morning: "დილა",
afternoon: "საღამო",
evening: "საღამო",
night: "ღამე",
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "შუაღამე",
noon: "შუადღე",
morning: "დილა",
afternoon: "საღამო",
evening: "საღამო",
night: "ღამე",
},
wide: {
am: "a.m.",
pm: "p.m.",
midnight: "შუაღამე",
noon: "შუადღე",
morning: "დილა",
afternoon: "საღამო",
evening: "საღამო",
night: "ღამე",
},
};
const formattingDayPeriodValues = {
narrow: {
am: "a",
pm: "p",
midnight: "შუაღამით",
noon: "შუადღისას",
morning: "დილით",
afternoon: "ნაშუადღევს",
evening: "საღამოს",
night: "ღამით",
},
abbreviated: {
am: "AM",
pm: "PM",
midnight: "შუაღამით",
noon: "შუადღისას",
morning: "დილით",
afternoon: "ნაშუადღევს",
evening: "საღამოს",
night: "ღამით",
},
wide: {
am: "a.m.",
pm: "p.m.",
midnight: "შუაღამით",
noon: "შუადღისას",
morning: "დილით",
afternoon: "ნაშუადღევს",
evening: "საღამოს",
night: "ღამით",
},
};
const ordinalNumber = (dirtyNumber) => {
const number = Number(dirtyNumber);
if (number === 1) {
return number + "-ლი";
}
return number + "-ე";
};
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
node_modules/date-fns/locale/ka/_lib/match.d.mts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import type { Match } from "../../types.js";
export declare const match: Match;

2
node_modules/date-fns/locale/ka/_lib/match.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import type { Match } from "../../types.js";
export declare const match: Match;

118
node_modules/date-fns/locale/ka/_lib/match.js generated vendored Normal file
View File

@@ -0,0 +1,118 @@
"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: /^[1234]-(ლი|ე)? კვ/i,
wide: /^[1234]-(ლი|ე)? კვარტალი/i,
};
const parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i],
};
const matchMonthPatterns = {
any: /^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i,
};
const parseMonthPatterns = {
any: [
/^ია/i,
/^თ/i,
/^მარ/i,
/^აპ/i,
/^მაი/i,
/^ი?ვნ/i,
/^ი?ვლ/i,
/^აგ/i,
/^ს/i,
/^ო/i,
/^ნ/i,
/^დ/i,
],
};
const matchDayPatterns = {
narrow: /^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i,
short: /^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i,
wide: /^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i,
};
const parseDayPatterns = {
any: [/^კვ/i, /^ორ/i, /^სა/i, /^ოთ/i, /^ხუ/i, /^პა/i, /^შა/i],
};
const matchDayPeriodPatterns = {
any: /^([ap]\.?\s?m\.?|შუაღ|დილ)/i,
};
const parseDayPeriodPatterns = {
any: {
am: /^a/i,
pm: /^p/i,
midnight: /^შუაღ/i,
noon: /^შუადღ/i,
morning: /^დილ/i,
afternoon: /ნაშუადღევს/i,
evening: /საღამო/i,
night: /ღამ/i,
},
};
const match = (exports.match = {
ordinalNumber: (0, _index2.buildMatchPatternFn)({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => parseInt(value, 10),
}),
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: "any",
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",
}),
});

115
node_modules/date-fns/locale/ka/_lib/match.mjs generated vendored Normal file
View File

@@ -0,0 +1,115 @@
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: /^[1234]-(ლი|ე)? კვ/i,
wide: /^[1234]-(ლი|ე)? კვარტალი/i,
};
const parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i],
};
const matchMonthPatterns = {
any: /^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i,
};
const parseMonthPatterns = {
any: [
/^ია/i,
/^თ/i,
/^მარ/i,
/^აპ/i,
/^მაი/i,
/^ი?ვნ/i,
/^ი?ვლ/i,
/^აგ/i,
/^ს/i,
/^ო/i,
/^ნ/i,
/^დ/i,
],
};
const matchDayPatterns = {
narrow: /^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i,
short: /^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i,
wide: /^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i,
};
const parseDayPatterns = {
any: [/^კვ/i, /^ორ/i, /^სა/i, /^ოთ/i, /^ხუ/i, /^პა/i, /^შა/i],
};
const matchDayPeriodPatterns = {
any: /^([ap]\.?\s?m\.?|შუაღ|დილ)/i,
};
const parseDayPeriodPatterns = {
any: {
am: /^a/i,
pm: /^p/i,
midnight: /^შუაღ/i,
noon: /^შუადღ/i,
morning: /^დილ/i,
afternoon: /ნაშუადღევს/i,
evening: /საღამო/i,
night: /ღამ/i,
},
};
export const match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => parseInt(value, 10),
}),
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: "any",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
};