diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-06-28 17:26:46 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-06-28 17:43:56 -0700 |
| commit | e4fa1e69e7ebfb627c7198fd1a9881e9327ec4d4 (patch) | |
| tree | 06284a538a6008eca75051399e47db4e5d50301c /node_modules/date-fns/esm/locale/az | |
initial commit: scaffolding
Diffstat (limited to 'node_modules/date-fns/esm/locale/az')
9 files changed, 455 insertions, 0 deletions
diff --git a/node_modules/date-fns/esm/locale/az/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/az/_lib/formatDistance/index.js new file mode 100644 index 0000000..fd07ca1 --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/_lib/formatDistance/index.js @@ -0,0 +1,83 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'bir saniyədən az', + other: '{{count}} bir saniyədən az' + }, + xSeconds: { + one: '1 saniyə', + other: '{{count}} saniyə' + }, + halfAMinute: 'yarım dəqiqə', + lessThanXMinutes: { + one: 'bir dəqiqədən az', + other: '{{count}} bir dəqiqədən az' + }, + xMinutes: { + one: 'bir dəqiqə', + other: '{{count}} dəqiqə' + }, + aboutXHours: { + one: 'təxminən 1 saat', + other: 'təxminən {{count}} saat' + }, + xHours: { + one: '1 saat', + other: '{{count}} saat' + }, + xDays: { + one: '1 gün', + other: '{{count}} gün' + }, + aboutXWeeks: { + one: 'təxminən 1 həftə', + other: 'təxminən {{count}} həftə' + }, + xWeeks: { + one: '1 həftə', + other: '{{count}} həftə' + }, + aboutXMonths: { + one: 'təxminən 1 ay', + other: 'təxminən {{count}} ay' + }, + xMonths: { + one: '1 ay', + other: '{{count}} ay' + }, + aboutXYears: { + one: 'təxminən 1 il', + other: 'təxminən {{count}} il' + }, + xYears: { + one: '1 il', + other: '{{count}} il' + }, + overXYears: { + one: '1 ildən çox', + other: '{{count}} ildən çox' + }, + almostXYears: { + one: 'demək olar ki 1 il', + other: 'demək olar ki {{count}} il' + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + ' sonra'; + } else { + return result + ' əvvəl'; + } + } + return result; +}; +export default formatDistance;
\ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/az/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/az/_lib/formatLong/index.js new file mode 100644 index 0000000..7787732 --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "EEEE, do MMMM y 'il'", + long: "do MMMM y 'il'", + medium: "d MMM y 'il'", + short: 'dd.MM.yyyy' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + full: "{{date}} {{time}} - 'də'", + long: "{{date}} {{time}} - 'də'", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong;
\ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/az/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/az/_lib/formatRelative/index.js new file mode 100644 index 0000000..d9368cf --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/_lib/formatRelative/index.js @@ -0,0 +1,12 @@ +var formatRelativeLocale = { + lastWeek: "'sonuncu' eeee p -'də'", + yesterday: "'dünən' p -'də'", + today: "'bugün' p -'də'", + tomorrow: "'sabah' p -'də'", + nextWeek: "eeee p -'də'", + other: 'P' +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; +export default formatRelative;
\ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/az/_lib/localize/index.js b/node_modules/date-fns/esm/locale/az/_lib/localize/index.js new file mode 100644 index 0000000..0a3b5f5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/_lib/localize/index.js @@ -0,0 +1,157 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['e.ə', 'b.e'], + abbreviated: ['e.ə', 'b.e'], + wide: ['eramızdan əvvəl', 'bizim era'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1ci kvartal', '2ci kvartal', '3cü kvartal', '4cü kvartal'] +}; +var monthValues = { + narrow: ['Y', 'F', 'M', 'A', 'M', 'İ', 'İ', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Yan', 'Fev', 'Mar', 'Apr', 'May', 'İyun', 'İyul', 'Avq', 'Sen', 'Okt', 'Noy', 'Dek'], + wide: ['Yanvar', 'Fevral', 'Mart', 'Aprel', 'May', 'İyun', 'İyul', 'Avqust', 'Sentyabr', 'Oktyabr', 'Noyabr', 'Dekabr'] +}; +var dayValues = { + narrow: ['B.', 'B.e', 'Ç.a', 'Ç.', 'C.a', 'C.', 'Ş.'], + short: ['B.', 'B.e', 'Ç.a', 'Ç.', 'C.a', 'C.', 'Ş.'], + abbreviated: ['Baz', 'Baz.e', 'Çər.a', 'Çər', 'Cüm.a', 'Cüm', 'Şə'], + wide: ['Bazar', 'Bazar ertəsi', 'Çərşənbə axşamı', 'Çərşənbə', 'Cümə axşamı', 'Cümə', 'Şənbə'] +}; +var dayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + } +}; +var suffixes = { + 1: '-inci', + 5: '-inci', + 8: '-inci', + 70: '-inci', + 80: '-inci', + 2: '-nci', + 7: '-nci', + 20: '-nci', + 50: '-nci', + 3: '-üncü', + 4: '-üncü', + 100: '-üncü', + 6: '-ncı', + 9: '-uncu', + 10: '-uncu', + 30: '-uncu', + 60: '-ıncı', + 90: '-ıncı' +}; +var getSuffix = function getSuffix(number) { + if (number === 0) { + // special case for zero + return number + '-ıncı'; + } + var a = number % 10; + var b = number % 100 - a; + var c = number >= 100 ? 100 : null; + if (suffixes[a]) { + return suffixes[a]; + } else if (suffixes[b]) { + return suffixes[b]; + } else if (c !== null) { + return suffixes[c]; + } + return ''; +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var suffix = getSuffix(number); + return number + suffix; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize;
\ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/az/_lib/match/index.js b/node_modules/date-fns/esm/locale/az/_lib/match/index.js new file mode 100644 index 0000000..6fe7eea --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/_lib/match/index.js @@ -0,0 +1,101 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(-?(ci|inci|nci|uncu|üncü|ncı))?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(b|a)$/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)$/i, + wide: /^(bizim eradan əvvəl|bizim era)$/i +}; +var parseEraPatterns = { + any: [/^b$/i, /^(a|c)$/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]$/i, + abbreviated: /^K[1234]$/i, + wide: /^[1234](ci)? kvartal$/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[(?-i)yfmaisond]$/i, + abbreviated: /^(Yan|Fev|Mar|Apr|May|İyun|İyul|Avq|Sen|Okt|Noy|Dek)$/i, + wide: /^(Yanvar|Fevral|Mart|Aprel|May|İyun|İyul|Avgust|Sentyabr|Oktyabr|Noyabr|Dekabr)$/i +}; +var parseMonthPatterns = { + narrow: [/^[(?-i)y]$/i, /^[(?-i)f]$/i, /^[(?-i)m]$/i, /^[(?-i)a]$/i, /^[(?-i)m]$/i, /^[(?-i)i]$/i, /^[(?-i)i]$/i, /^[(?-i)a]$/i, /^[(?-i)s]$/i, /^[(?-i)o]$/i, /^[(?-i)n]$/i, /^[(?-i)d]$/i], + abbreviated: [/^Yan$/i, /^Fev$/i, /^Mar$/i, /^Apr$/i, /^May$/i, /^İyun$/i, /^İyul$/i, /^Avg$/i, /^Sen$/i, /^Okt$/i, /^Noy$/i, /^Dek$/i], + wide: [/^Yanvar$/i, /^Fevral$/i, /^Mart$/i, /^Aprel$/i, /^May$/i, /^İyun$/i, /^İyul$/i, /^Avgust$/i, /^Sentyabr$/i, /^Oktyabr$/i, /^Noyabr$/i, /^Dekabr$/i] +}; +var matchDayPatterns = { + narrow: /^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i, + short: /^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i, + abbreviated: /^(Baz\.e|Çər|Çər\.a|Cüm|Cüm\.a|Şə)$/i, + wide: /^(Bazar|Bazar ertəsi|Çərşənbə axşamı|Çərşənbə|Cümə axşamı|Cümə|Şənbə)$/i +}; +var parseDayPatterns = { + narrow: [/^B\.$/i, /^B\.e$/i, /^Ç\.a$/i, /^Ç\.$/i, /^C\.a$/i, /^C\.$/i, /^Ş\.$/i], + abbreviated: [/^Baz$/i, /^Baz\.e$/i, /^Çər\.a$/i, /^Çər$/i, /^Cüm\.a$/i, /^Cüm$/i, /^Şə$/i], + wide: [/^Bazar$/i, /^Bazar ertəsi$/i, /^Çərşənbə axşamı$/i, /^Çərşənbə$/i, /^Cümə axşamı$/i, /^Cümə$/i, /^Şənbə$/i], + any: [/^B\.$/i, /^B\.e$/i, /^Ç\.a$/i, /^Ç\.$/i, /^C\.a$/i, /^C\.$/i, /^Ş\.$/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i, + any: /^(am|pm|a\.m\.|p\.m\.|AM|PM|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a$/i, + pm: /^p$/i, + midnight: /^gecəyarı$/i, + noon: /^gün$/i, + morning: /səhər$/i, + afternoon: /gündüz$/i, + evening: /axşam$/i, + night: /gecə$/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'narrow' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match;
\ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/az/index.d.ts b/node_modules/date-fns/esm/locale/az/index.d.ts new file mode 100644 index 0000000..b2b2253 --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { az } from 'date-fns/locale' +export default az diff --git a/node_modules/date-fns/esm/locale/az/index.js b/node_modules/date-fns/esm/locale/az/index.js new file mode 100644 index 0000000..64e7932 --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/index.js @@ -0,0 +1,25 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Azerbaijani locale. + * @language Azerbaijani + * @iso-639-2 aze + */ +var locale = { + code: 'az', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +export default locale;
\ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/az/index.js.flow b/node_modules/date-fns/esm/locale/az/index.js.flow new file mode 100644 index 0000000..b9dfe66 --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/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/esm/locale/az/package.json b/node_modules/date-fns/esm/locale/az/package.json new file mode 100644 index 0000000..a7398d8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +}
\ No newline at end of file |
