diff options
Diffstat (limited to 'node_modules/date-fns/locale/eo/_lib')
5 files changed, 353 insertions, 0 deletions
diff --git a/node_modules/date-fns/locale/eo/_lib/formatDistance/index.js b/node_modules/date-fns/locale/eo/_lib/formatDistance/index.js new file mode 100644 index 0000000..0f8a326 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatDistance/index.js @@ -0,0 +1,91 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'malpli ol sekundo', + other: 'malpli ol {{count}} sekundoj' + }, + xSeconds: { + one: '1 sekundo', + other: '{{count}} sekundoj' + }, + halfAMinute: 'duonminuto', + lessThanXMinutes: { + one: 'malpli ol minuto', + other: 'malpli ol {{count}} minutoj' + }, + xMinutes: { + one: '1 minuto', + other: '{{count}} minutoj' + }, + aboutXHours: { + one: 'proksimume 1 horo', + other: 'proksimume {{count}} horoj' + }, + xHours: { + one: '1 horo', + other: '{{count}} horoj' + }, + xDays: { + one: '1 tago', + other: '{{count}} tagoj' + }, + aboutXMonths: { + one: 'proksimume 1 monato', + other: 'proksimume {{count}} monatoj' + }, + xWeeks: { + one: '1 semajno', + other: '{{count}} semajnoj' + }, + aboutXWeeks: { + one: 'proksimume 1 semajno', + other: 'proksimume {{count}} semajnoj' + }, + xMonths: { + one: '1 monato', + other: '{{count}} monatoj' + }, + aboutXYears: { + one: 'proksimume 1 jaro', + other: 'proksimume {{count}} jaroj' + }, + xYears: { + one: '1 jaro', + other: '{{count}} jaroj' + }, + overXYears: { + one: 'pli ol 1 jaro', + other: 'pli ol {{count}} jaroj' + }, + almostXYears: { + one: 'preskaŭ 1 jaro', + other: 'preskaŭ {{count}} jaroj' + } +}; +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 !== null && options !== void 0 && options.comparison && options.comparison > 0) { + return 'post ' + result; + } else { + return 'antaŭ ' + 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/eo/_lib/formatLong/index.js b/node_modules/date-fns/locale/eo/_lib/formatLong/index.js new file mode 100644 index 0000000..7cf7ed3 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatLong/index.js @@ -0,0 +1,40 @@ +"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, do 'de' MMMM y", + long: 'y-MMMM-dd', + medium: 'y-MMM-dd', + short: 'yyyy-MM-dd' +}; +var timeFormats = { + full: "Ho 'horo kaj' m:ss zzzz", + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + any: '{{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: 'any' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default;
\ No newline at end of file diff --git a/node_modules/date-fns/locale/eo/_lib/formatRelative/index.js b/node_modules/date-fns/locale/eo/_lib/formatRelative/index.js new file mode 100644 index 0000000..958a784 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'pasinta' eeee 'je' p", + yesterday: "'hieraŭ je' p", + today: "'hodiaŭ je' p", + tomorrow: "'morgaŭ je' p", + nextWeek: "eeee 'je' 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/eo/_lib/localize/index.js b/node_modules/date-fns/locale/eo/_lib/localize/index.js new file mode 100644 index 0000000..5f65fb6 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/localize/index.js @@ -0,0 +1,94 @@ +"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: ['aK', 'pK'], + abbreviated: ['a.K.E.', 'p.K.E.'], + wide: ['antaŭ Komuna Erao', 'Komuna Erao'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1-a kvaronjaro', '2-a kvaronjaro', '3-a kvaronjaro', '4-a kvaronjaro'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'aŭg', 'sep', 'okt', 'nov', 'dec'], + wide: ['januaro', 'februaro', 'marto', 'aprilo', 'majo', 'junio', 'julio', 'aŭgusto', 'septembro', 'oktobro', 'novembro', 'decembro'] +}; +var dayValues = { + narrow: ['D', 'L', 'M', 'M', 'Ĵ', 'V', 'S'], + short: ['di', 'lu', 'ma', 'me', 'ĵa', 've', 'sa'], + abbreviated: ['dim', 'lun', 'mar', 'mer', 'ĵaŭ', 'ven', 'sab'], + wide: ['dimanĉo', 'lundo', 'mardo', 'merkredo', 'ĵaŭdo', 'vendredo', 'sabato'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'noktomezo', + noon: 'tagmezo', + morning: 'matene', + afternoon: 'posttagmeze', + evening: 'vespere', + night: 'nokte' + }, + abbreviated: { + am: 'a.t.m.', + pm: 'p.t.m.', + midnight: 'noktomezo', + noon: 'tagmezo', + morning: 'matene', + afternoon: 'posttagmeze', + evening: 'vespere', + night: 'nokte' + }, + wide: { + am: 'antaŭtagmeze', + pm: 'posttagmeze', + midnight: 'noktomezo', + noon: 'tagmezo', + morning: 'matene', + afternoon: 'posttagmeze', + evening: 'vespere', + night: 'nokte' + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return number + '-a'; +}; +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 Number(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/eo/_lib/match/index.js b/node_modules/date-fns/locale/eo/_lib/match/index.js new file mode 100644 index 0000000..7d14152 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/match/index.js @@ -0,0 +1,108 @@ +"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/buildMatchPatternFn/index.js")); +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); +var matchOrdinalNumberPattern = /^(\d+)(-?a)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^([ap]k)/i, + abbreviated: /^([ap]\.?\s?k\.?\s?e\.?)/i, + wide: /^((antaǔ |post )?komuna erao)/i +}; +var parseEraPatterns = { + any: [/^a/i, /^[kp]/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^k[1234]/i, + wide: /^[1234](-?a)? kvaronjaro/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i, + wide: /^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^a(u|ŭ)/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[dlmĵjvs]/i, + short: /^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i, + wide: /^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^(j|ĵ)/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^(j|ĵ)/i, /^v/i, /^s/i] +}; +var matchDayPeriodPatterns = { + narrow: /^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + abbreviated: /^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + wide: /^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^noktom/i, + noon: /^t/i, + morning: /^m/i, + afternoon: /^posttagmeze/i, + evening: /^v/i, + night: /^n/i + } +}; +var match = { + ordinalNumber: (0, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index2.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index2.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index2.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index2.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index2.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default;
\ No newline at end of file |
