aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/locale/ht
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/ht
initial commit: scaffolding
Diffstat (limited to 'node_modules/date-fns/locale/ht')
-rw-r--r--node_modules/date-fns/locale/ht/_lib/formatDistance/index.js91
-rw-r--r--node_modules/date-fns/locale/ht/_lib/formatLong/index.js43
-rw-r--r--node_modules/date-fns/locale/ht/_lib/formatRelative/index.js20
-rw-r--r--node_modules/date-fns/locale/ht/_lib/localize/index.js96
-rw-r--r--node_modules/date-fns/locale/ht/_lib/match/index.js107
-rw-r--r--node_modules/date-fns/locale/ht/index.d.ts4
-rw-r--r--node_modules/date-fns/locale/ht/index.js36
-rw-r--r--node_modules/date-fns/locale/ht/index.js.flow35
-rw-r--r--node_modules/date-fns/locale/ht/package.json5
9 files changed, 437 insertions, 0 deletions
diff --git a/node_modules/date-fns/locale/ht/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ht/_lib/formatDistance/index.js
new file mode 100644
index 0000000..311af6b
--- /dev/null
+++ b/node_modules/date-fns/locale/ht/_lib/formatDistance/index.js
@@ -0,0 +1,91 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var formatDistanceLocale = {
+ lessThanXSeconds: {
+ one: 'mwens pase yon segond',
+ other: 'mwens pase {{count}} segond'
+ },
+ xSeconds: {
+ one: '1 segond',
+ other: '{{count}} segond'
+ },
+ halfAMinute: '30 segond',
+ lessThanXMinutes: {
+ one: 'mwens pase yon minit',
+ other: 'mwens pase {{count}} minit'
+ },
+ xMinutes: {
+ one: '1 minit',
+ other: '{{count}} minit'
+ },
+ aboutXHours: {
+ one: 'anviwon inè',
+ other: 'anviwon {{count}} è'
+ },
+ xHours: {
+ one: '1 lè',
+ other: '{{count}} lè'
+ },
+ xDays: {
+ one: '1 jou',
+ other: '{{count}} jou'
+ },
+ aboutXWeeks: {
+ one: 'anviwon 1 semèn',
+ other: 'anviwon {{count}} semèn'
+ },
+ xWeeks: {
+ one: '1 semèn',
+ other: '{{count}} semèn'
+ },
+ aboutXMonths: {
+ one: 'anviwon 1 mwa',
+ other: 'anviwon {{count}} mwa'
+ },
+ xMonths: {
+ one: '1 mwa',
+ other: '{{count}} mwa'
+ },
+ aboutXYears: {
+ one: 'anviwon 1 an',
+ other: 'anviwon {{count}} an'
+ },
+ xYears: {
+ one: '1 an',
+ other: '{{count}} an'
+ },
+ overXYears: {
+ one: 'plis pase 1 an',
+ other: 'plis pase {{count}} an'
+ },
+ almostXYears: {
+ one: 'prèske 1 an',
+ other: 'prèske {{count}} an'
+ }
+};
+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 'nan ' + result;
+ } else {
+ return 'sa fè ' + 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/ht/_lib/formatLong/index.js b/node_modules/date-fns/locale/ht/_lib/formatLong/index.js
new file mode 100644
index 0000000..a62b1a3
--- /dev/null
+++ b/node_modules/date-fns/locale/ht/_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: 'dd/MM/y'
+};
+var timeFormats = {
+ full: 'HH:mm:ss zzzz',
+ long: 'HH:mm:ss z',
+ medium: 'HH:mm:ss',
+ short: 'HH:mm'
+};
+var dateTimeFormats = {
+ full: "{{date}} 'nan lè' {{time}}",
+ long: "{{date}} 'nan lè' {{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/ht/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ht/_lib/formatRelative/index.js
new file mode 100644
index 0000000..a312d64
--- /dev/null
+++ b/node_modules/date-fns/locale/ht/_lib/formatRelative/index.js
@@ -0,0 +1,20 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var formatRelativeLocale = {
+ lastWeek: "eeee 'pase nan lè' p",
+ yesterday: "'yè nan lè' p",
+ today: "'jodi a' p",
+ tomorrow: "'demen nan lè' p'",
+ nextWeek: "eeee 'pwochen nan lè' 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/ht/_lib/localize/index.js b/node_modules/date-fns/locale/ht/_lib/localize/index.js
new file mode 100644
index 0000000..4a3a860
--- /dev/null
+++ b/node_modules/date-fns/locale/ht/_lib/localize/index.js
@@ -0,0 +1,96 @@
+"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: ['av. J.-K', 'ap. J.-K'],
+ abbreviated: ['av. J.-K', 'ap. J.-K'],
+ wide: ['anvan Jezi Kris', 'apre Jezi Kris']
+};
+var quarterValues = {
+ narrow: ['T1', 'T2', 'T3', 'T4'],
+ abbreviated: ['1ye trim.', '2yèm trim.', '3yèm trim.', '4yèm trim.'],
+ wide: ['1ye trimès', '2yèm trimès', '3yèm trimès', '4yèm trimès']
+};
+var monthValues = {
+ narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'O', 'S', 'O', 'N', 'D'],
+ abbreviated: ['janv.', 'fevr.', 'mas', 'avr.', 'me', 'jen', 'jiyè', 'out', 'sept.', 'okt.', 'nov.', 'des.'],
+ wide: ['janvye', 'fevrye', 'mas', 'avril', 'me', 'jen', 'jiyè', 'out', 'septanm', 'oktòb', 'novanm', 'desanm']
+};
+var dayValues = {
+ narrow: ['D', 'L', 'M', 'M', 'J', 'V', 'S'],
+ short: ['di', 'le', 'ma', 'mè', 'je', 'va', 'sa'],
+ abbreviated: ['dim.', 'len.', 'mad.', 'mèk.', 'jed.', 'van.', 'sam.'],
+ wide: ['dimanch', 'lendi', 'madi', 'mèkredi', 'jedi', 'vandredi', 'samdi']
+};
+var dayPeriodValues = {
+ narrow: {
+ am: 'AM',
+ pm: 'PM',
+ midnight: 'minwit',
+ noon: 'midi',
+ morning: 'mat.',
+ afternoon: 'ap.m.',
+ evening: 'swa',
+ night: 'mat.'
+ },
+ abbreviated: {
+ am: 'AM',
+ pm: 'PM',
+ midnight: 'minwit',
+ noon: 'midi',
+ morning: 'maten',
+ afternoon: 'aprèmidi',
+ evening: 'swa',
+ night: 'maten'
+ },
+ wide: {
+ am: 'AM',
+ pm: 'PM',
+ midnight: 'minwit',
+ noon: 'midi',
+ morning: 'nan maten',
+ afternoon: 'nan aprèmidi',
+ evening: 'nan aswè',
+ night: 'nan maten'
+ }
+};
+var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
+ var number = Number(dirtyNumber);
+ if (number === 0) return String(number);
+ var suffix = number === 1 ? 'ye' : 'yèm';
+ return number + suffix;
+};
+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'
+ })
+};
+var _default = localize;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/ht/_lib/match/index.js b/node_modules/date-fns/locale/ht/_lib/match/index.js
new file mode 100644
index 0000000..8b40a85
--- /dev/null
+++ b/node_modules/date-fns/locale/ht/_lib/match/index.js
@@ -0,0 +1,107 @@
+"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+)(ye|yèm)?/i;
+var parseOrdinalNumberPattern = /\d+/i;
+var matchEraPatterns = {
+ narrow: /^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i,
+ abbreviated: /^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i,
+ wide: /^(avan Jezi Kris|apre Jezi Kris)/i
+};
+var parseEraPatterns = {
+ any: [/^av/i, /^ap/i]
+};
+var matchQuarterPatterns = {
+ narrow: /^[1234]/i,
+ abbreviated: /^t[1234]/i,
+ wide: /^[1234](ye|yèm)? trimès/i
+};
+var parseQuarterPatterns = {
+ any: [/1/i, /2/i, /3/i, /4/i]
+};
+var matchMonthPatterns = {
+ narrow: /^[jfmasond]/i,
+ abbreviated: /^(janv|fevr|mas|avr|me|jen|jiyè|out|sept|okt|nov|des)\.?/i,
+ wide: /^(janvye|fevrye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i
+};
+var parseMonthPatterns = {
+ narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^o/i, /^s/i, /^o/i, /^n/i, /^d/i],
+ any: [/^ja/i, /^f/i, /^ma/i, /^av/i, /^me/i, /^je/i, /^ji/i, /^ou/i, /^s/i, /^ok/i, /^n/i, /^d/i]
+};
+var matchDayPatterns = {
+ narrow: /^[lmjvsd]/i,
+ short: /^(di|le|ma|me|je|va|sa)/i,
+ abbreviated: /^(dim|len|mad|mèk|jed|van|sam)\.?/i,
+ wide: /^(dimanch|lendi|madi|mèkredi|jedi|vandredi|samdi)/i
+};
+var parseDayPatterns = {
+ narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i],
+ any: [/^di/i, /^le/i, /^ma/i, /^mè/i, /^je/i, /^va/i, /^sa/i]
+};
+var matchDayPeriodPatterns = {
+ narrow: /^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i,
+ any: /^([ap]\.?\s?m\.?|nan maten|nan aprèmidi|nan aswè)/i
+};
+var parseDayPeriodPatterns = {
+ any: {
+ am: /^a/i,
+ pm: /^p/i,
+ midnight: /^min/i,
+ noon: /^mid/i,
+ morning: /mat/i,
+ afternoon: /ap/i,
+ evening: /sw/i,
+ night: /nwit/i
+ }
+};
+var match = {
+ ordinalNumber: (0, _index2.default)({
+ matchPattern: matchOrdinalNumberPattern,
+ parsePattern: parseOrdinalNumberPattern,
+ valueCallback: function valueCallback(value) {
+ return parseInt(value, 10);
+ }
+ }),
+ 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/ht/index.d.ts b/node_modules/date-fns/locale/ht/index.d.ts
new file mode 100644
index 0000000..7362d75
--- /dev/null
+++ b/node_modules/date-fns/locale/ht/index.d.ts
@@ -0,0 +1,4 @@
+// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
+
+import { ht } from 'date-fns/locale'
+export default ht
diff --git a/node_modules/date-fns/locale/ht/index.js b/node_modules/date-fns/locale/ht/index.js
new file mode 100644
index 0000000..f01de87
--- /dev/null
+++ b/node_modules/date-fns/locale/ht/index.js
@@ -0,0 +1,36 @@
+"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 Haitian Creole locale.
+ * @language Haitian Creole
+ * @iso-639-2 hat
+ * @author Rubens Mariuzzo [@rmariuzzo]{@link https://github.com/rmariuzzo}
+ * @author Watson Marcelain [@watsongm24]{@link https://github.com/watsongm24}
+ */
+var locale = {
+ code: 'ht',
+ formatDistance: _index.default,
+ formatLong: _index2.default,
+ formatRelative: _index3.default,
+ localize: _index4.default,
+ match: _index5.default,
+ options: {
+ weekStartsOn: 1 /* Monday */,
+ firstWeekContainsDate: 4
+ }
+};
+var _default = locale;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/ht/index.js.flow b/node_modules/date-fns/locale/ht/index.js.flow
new file mode 100644
index 0000000..b9dfe66
--- /dev/null
+++ b/node_modules/date-fns/locale/ht/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/ht/package.json b/node_modules/date-fns/locale/ht/package.json
new file mode 100644
index 0000000..00c08dc
--- /dev/null
+++ b/node_modules/date-fns/locale/ht/package.json
@@ -0,0 +1,5 @@
+{
+ "sideEffects": false,
+ "module": "../../esm/locale/ht/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