aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/esm/locale/km
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/esm/locale/km
initial commit: scaffolding
Diffstat (limited to 'node_modules/date-fns/esm/locale/km')
-rw-r--r--node_modules/date-fns/esm/locale/km/_lib/formatDistance/index.js34
-rw-r--r--node_modules/date-fns/esm/locale/km/_lib/formatLong/index.js34
-rw-r--r--node_modules/date-fns/esm/locale/km/_lib/formatRelative/index.js12
-rw-r--r--node_modules/date-fns/esm/locale/km/_lib/localize/index.js119
-rw-r--r--node_modules/date-fns/esm/locale/km/_lib/match/index.js98
-rw-r--r--node_modules/date-fns/esm/locale/km/index.d.ts4
-rw-r--r--node_modules/date-fns/esm/locale/km/index.js26
-rw-r--r--node_modules/date-fns/esm/locale/km/index.js.flow35
-rw-r--r--node_modules/date-fns/esm/locale/km/package.json4
9 files changed, 366 insertions, 0 deletions
diff --git a/node_modules/date-fns/esm/locale/km/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/km/_lib/formatDistance/index.js
new file mode 100644
index 0000000..ec813aa
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/km/_lib/formatDistance/index.js
@@ -0,0 +1,34 @@
+var formatDistanceLocale = {
+ lessThanXSeconds: 'តិចជាង {{count}} វិនាទី',
+ xSeconds: '{{count}} វិនាទី',
+ halfAMinute: 'កន្លះនាទី',
+ lessThanXMinutes: 'តិចជាង {{count}} នាទី',
+ xMinutes: '{{count}} នាទី',
+ aboutXHours: 'ប្រហែល {{count}} ម៉ោង',
+ xHours: '{{count}} ម៉ោង',
+ xDays: '{{count}} ថ្ងៃ',
+ aboutXWeeks: 'ប្រហែល {{count}} សប្តាហ៍',
+ xWeeks: '{{count}} សប្តាហ៍',
+ aboutXMonths: 'ប្រហែល {{count}} ខែ',
+ xMonths: '{{count}} ខែ',
+ aboutXYears: 'ប្រហែល {{count}} ឆ្នាំ',
+ xYears: '{{count}} ឆ្នាំ',
+ overXYears: 'ជាង {{count}} ឆ្នាំ',
+ almostXYears: 'ជិត {{count}} ឆ្នាំ'
+};
+var formatDistance = function formatDistance(token, count, options) {
+ var tokenValue = formatDistanceLocale[token];
+ var result = tokenValue;
+ if (typeof count === 'number') {
+ result = result.replace('{{count}}', count.toString());
+ }
+ if (options !== null && options !== void 0 && options.addSuffix) {
+ if (options.comparison && options.comparison > 0) {
+ return 'ក្នុងរយៈពេល ' + result;
+ } else {
+ return result + 'មុន';
+ }
+ }
+ return result;
+};
+export default formatDistance; \ No newline at end of file
diff --git a/node_modules/date-fns/esm/locale/km/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/km/_lib/formatLong/index.js
new file mode 100644
index 0000000..1393183
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/km/_lib/formatLong/index.js
@@ -0,0 +1,34 @@
+import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js";
+var dateFormats = {
+ full: 'EEEE do MMMM y',
+ long: 'do MMMM y',
+ medium: 'd MMM y',
+ short: 'dd/MM/yyyy'
+};
+var timeFormats = {
+ full: 'h:mm:ss a',
+ long: 'h:mm:ss a',
+ medium: 'h:mm:ss a',
+ short: 'h:mm a'
+};
+var dateTimeFormats = {
+ full: "{{date}} 'ម៉ោង' {{time}}",
+ long: "{{date}} 'ម៉ោង' {{time}}",
+ 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/km/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/km/_lib/formatRelative/index.js
new file mode 100644
index 0000000..ef1f197
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/km/_lib/formatRelative/index.js
@@ -0,0 +1,12 @@
+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];
+};
+export default formatRelative; \ No newline at end of file
diff --git a/node_modules/date-fns/esm/locale/km/_lib/localize/index.js b/node_modules/date-fns/esm/locale/km/_lib/localize/index.js
new file mode 100644
index 0000000..797f90e
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/km/_lib/localize/index.js
@@ -0,0 +1,119 @@
+import buildLocalizeFn from "../../../_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: ['ម.ក', 'ក.ម', 'មិ', 'ម.ស', 'ឧ.ស', 'ម.ថ', 'ក.ដ', 'សី', 'កញ', 'តុ', 'វិ', 'ធ'],
+ 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, _) {
+ var number = Number(dirtyNumber);
+ return number.toString();
+};
+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/km/_lib/match/index.js b/node_modules/date-fns/esm/locale/km/_lib/match/index.js
new file mode 100644
index 0000000..7ce8a98
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/km/_lib/match/index.js
@@ -0,0 +1,98 @@
+import buildMatchFn from "../../../_lib/buildMatchFn/index.js";
+import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js";
+var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/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: /^(ត្រីមាស)(ទី)?\s?[1234]/i
+};
+var parseQuarterPatterns = {
+ any: [/1/i, /2/i, /3/i, /4/i]
+};
+var matchMonthPatterns = {
+ narrow: /^(ម\.ក|ក\.ម|មិ|ម\.ស|ឧ\.ស|ម\.ថ|ក\.ដ|សី|កញ|តុ|វិ|ធ)/i,
+ abbreviated: /^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i,
+ wide: /^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i
+};
+var parseMonthPatterns = {
+ narrow: [/^ម\.ក/i, /^ក\.ម/i, /^មិ/i, /^ម\.ស/i, /^ឧ\.ស/i, /^ម\.ថ/i, /^ក\.ដ/i, /^សី/i, /^កញ/i, /^តុ/i, /^វិ/i, /^ធ/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 = {
+ narrow: [/^អា/i, /^ច/i, /^អ/i, /^ព/i, /^ព្រ/i, /^សុ/i, /^ស/i],
+ any: [/^អា/i, /^ច/i, /^អ/i, /^ព/i, /^ព្រ/i, /^សុ/i, /^សៅ/i]
+};
+var matchDayPeriodPatterns = {
+ narrow: /^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i,
+ any: /^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i
+};
+var parseDayPeriodPatterns = {
+ any: {
+ am: /^ព្រឹក/i,
+ pm: /^ល្ងាច/i,
+ midnight: /^ពេលកណ្ដាលអធ្រាត្រ/i,
+ noon: /^ពេលថ្ងៃត្រង់/i,
+ morning: /ពេលព្រឹក/i,
+ afternoon: /ពេលរសៀល/i,
+ evening: /ពេលល្ងាច/i,
+ night: /ពេលយប់/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: 'any'
+ }),
+ 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/km/index.d.ts b/node_modules/date-fns/esm/locale/km/index.d.ts
new file mode 100644
index 0000000..82f582c
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/km/index.d.ts
@@ -0,0 +1,4 @@
+// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
+
+import { km } from 'date-fns/locale'
+export default km
diff --git a/node_modules/date-fns/esm/locale/km/index.js b/node_modules/date-fns/esm/locale/km/index.js
new file mode 100644
index 0000000..4ee16a5
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/km/index.js
@@ -0,0 +1,26 @@
+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 Khmer locale (Cambodian).
+ * @language Khmer
+ * @iso-639-2 khm
+ * @author Seanghay Yath [@seanghay]{@link https://github.com/seanghay}
+ */
+var locale = {
+ code: 'km',
+ formatDistance: formatDistance,
+ formatLong: formatLong,
+ formatRelative: formatRelative,
+ localize: localize,
+ match: match,
+ options: {
+ weekStartsOn: 0 /* Sunday */,
+ firstWeekContainsDate: 1
+ }
+};
+export default locale; \ No newline at end of file
diff --git a/node_modules/date-fns/esm/locale/km/index.js.flow b/node_modules/date-fns/esm/locale/km/index.js.flow
new file mode 100644
index 0000000..b9dfe66
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/km/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/km/package.json b/node_modules/date-fns/esm/locale/km/package.json
new file mode 100644
index 0000000..a7398d8
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/km/package.json
@@ -0,0 +1,4 @@
+{
+ "sideEffects": false,
+ "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