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/locale/oc/_lib | |
initial commit: scaffolding
Diffstat (limited to 'node_modules/date-fns/locale/oc/_lib')
5 files changed, 406 insertions, 0 deletions
diff --git a/node_modules/date-fns/locale/oc/_lib/formatDistance/index.js b/node_modules/date-fns/locale/oc/_lib/formatDistance/index.js new file mode 100644 index 0000000..e83bf54 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatDistance/index.js @@ -0,0 +1,91 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'mens d’una segonda', + other: 'mens de {{count}} segondas' + }, + xSeconds: { + one: '1 segonda', + other: '{{count}} segondas' + }, + halfAMinute: '30 segondas', + lessThanXMinutes: { + one: 'mens d’una minuta', + other: 'mens de {{count}} minutas' + }, + xMinutes: { + one: '1 minuta', + other: '{{count}} minutas' + }, + aboutXHours: { + one: 'environ 1 ora', + other: 'environ {{count}} oras' + }, + xHours: { + one: '1 ora', + other: '{{count}} oras' + }, + xDays: { + one: '1 jorn', + other: '{{count}} jorns' + }, + aboutXWeeks: { + one: 'environ 1 setmana', + other: 'environ {{count}} setmanas' + }, + xWeeks: { + one: '1 setmana', + other: '{{count}} setmanas' + }, + aboutXMonths: { + one: 'environ 1 mes', + other: 'environ {{count}} meses' + }, + xMonths: { + one: '1 mes', + other: '{{count}} meses' + }, + aboutXYears: { + one: 'environ 1 an', + other: 'environ {{count}} ans' + }, + xYears: { + one: '1 an', + other: '{{count}} ans' + }, + overXYears: { + one: 'mai d’un an', + other: 'mai de {{count}} ans' + }, + almostXYears: { + one: 'gaireben un an', + other: 'gaireben {{count}} ans' + } +}; +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 'd’aquí ' + result; + } else { + return 'fa ' + 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/oc/_lib/formatLong/index.js b/node_modules/date-fns/locale/oc/_lib/formatLong/index.js new file mode 100644 index 0000000..59ea04e --- /dev/null +++ b/node_modules/date-fns/locale/oc/_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 'de' MMMM y", + long: "d 'de' 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}} 'a' {{time}}", + long: "{{date}} 'a' {{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/oc/_lib/formatRelative/index.js b/node_modules/date-fns/locale/oc/_lib/formatRelative/index.js new file mode 100644 index 0000000..e599716 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "eeee 'passat a' p", + yesterday: "'ièr a' p", + today: "'uèi a' p", + tomorrow: "'deman a' p", + nextWeek: "eeee 'a' 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/oc/_lib/localize/index.js b/node_modules/date-fns/locale/oc/_lib/localize/index.js new file mode 100644 index 0000000..bd8a48e --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/localize/index.js @@ -0,0 +1,145 @@ +"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: ['ab. J.C.', 'apr. J.C.'], + abbreviated: ['ab. J.C.', 'apr. J.C.'], + wide: ['abans Jèsus-Crist', 'après Jèsus-Crist'] +}; +var quarterValues = { + narrow: ['T1', 'T2', 'T3', 'T4'], + abbreviated: ['1èr trim.', '2nd trim.', '3en trim.', '4en trim.'], + wide: ['1èr trimèstre', '2nd trimèstre', '3en trimèstre', '4en trimèstre'] +}; +var monthValues = { + narrow: ['GN', 'FB', 'MÇ', 'AB', 'MA', 'JN', 'JL', 'AG', 'ST', 'OC', 'NV', 'DC'], + abbreviated: ['gen.', 'febr.', 'març', 'abr.', 'mai', 'junh', 'jul.', 'ag.', 'set.', 'oct.', 'nov.', 'dec.'], + wide: ['genièr', 'febrièr', 'març', 'abril', 'mai', 'junh', 'julhet', 'agost', 'setembre', 'octòbre', 'novembre', 'decembre'] +}; +var dayValues = { + narrow: ['dg.', 'dl.', 'dm.', 'dc.', 'dj.', 'dv.', 'ds.'], + short: ['dg.', 'dl.', 'dm.', 'dc.', 'dj.', 'dv.', 'ds.'], + abbreviated: ['dg.', 'dl.', 'dm.', 'dc.', 'dj.', 'dv.', 'ds.'], + wide: ['dimenge', 'diluns', 'dimars', 'dimècres', 'dijòus', 'divendres', 'dissabte'] +}; +var dayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'matin', + afternoon: 'aprèp-miègjorn', + evening: 'vèspre', + night: 'nuèch' + }, + abbreviated: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'matin', + afternoon: 'aprèp-miègjorn', + evening: 'vèspre', + night: 'nuèch' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'matin', + afternoon: 'aprèp-miègjorn', + evening: 'vèspre', + night: 'nuèch' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'del matin', + afternoon: 'de l’aprèp-miègjorn', + evening: 'del ser', + night: 'de la nuèch' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'del matin', + afternoon: 'de l’aprèp-miègjorn', + evening: 'del ser', + night: 'de la nuèch' + }, + wide: { + am: 'ante meridiem', + pm: 'post meridiem', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'del matin', + afternoon: 'de l’aprèp-miègjorn', + evening: 'del ser', + night: 'de la nuèch' + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + var ordinal; + switch (number) { + case 1: + ordinal = 'èr'; + break; + case 2: + ordinal = 'nd'; + break; + default: + ordinal = 'en'; + } + + // feminine for year, week, hour, minute, second + if (unit === 'year' || unit === 'week' || unit === 'hour' || unit === 'minute' || unit === 'second') { + ordinal += 'a'; + } + return number + ordinal; +}; +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/oc/_lib/match/index.js b/node_modules/date-fns/locale/oc/_lib/match/index.js new file mode 100644 index 0000000..a12f1f2 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_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+)(èr|nd|en)?[a]?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i, + abbreviated: /^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(abans Jèsus-Crist|après Jèsus-Crist)/i +}; +var parseEraPatterns = { + any: [/^ab/i, /^ap/i] +}; +var matchQuarterPatterns = { + narrow: /^T[1234]/i, + abbreviated: /^[1234](èr|nd|en)? trim\.?/i, + wide: /^[1234](èr|nd|en)? trimèstre/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i, + abbreviated: /^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i, + wide: /^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i +}; +var parseMonthPatterns = { + any: [/^g/i, /^f/i, /^ma[r?]|MÇ/i, /^ab/i, /^ma[i?]/i, /^ju[n?]|JN/i, /^ju[l?]|JL/i, /^ag/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^d[glmcjvs]\.?/i, + short: /^d[glmcjvs]\.?/i, + abbreviated: /^d[glmcjvs]\.?/i, + wide: /^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i +}; +var parseDayPatterns = { + narrow: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + short: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + abbreviated: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + any: [/^dg|dime/i, /^dl|dil/i, /^dm|dima/i, /^dc|dimè/i, /^dj|dij/i, /^dv|div/i, /^ds|dis/i] +}; +var matchDayPeriodPatterns = { + any: /(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l’)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /(^a)|ante meridiem/i, + pm: /(^p)|post meridiem/i, + midnight: /^mièj/i, + noon: /^mièg/i, + morning: /matin/i, + afternoon: /aprèp-miègjorn/i, + evening: /vèspre|ser/i, + night: /nuèch/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 |
