diff options
Diffstat (limited to 'node_modules/date-fns/locale/de')
| -rw-r--r-- | node_modules/date-fns/locale/de/_lib/formatDistance/index.js | 184 | ||||
| -rw-r--r-- | node_modules/date-fns/locale/de/_lib/formatLong/index.js | 48 | ||||
| -rw-r--r-- | node_modules/date-fns/locale/de/_lib/formatRelative/index.js | 20 | ||||
| -rw-r--r-- | node_modules/date-fns/locale/de/_lib/localize/index.js | 143 | ||||
| -rw-r--r-- | node_modules/date-fns/locale/de/_lib/match/index.js | 109 | ||||
| -rw-r--r-- | node_modules/date-fns/locale/de/index.d.ts | 4 | ||||
| -rw-r--r-- | node_modules/date-fns/locale/de/index.js | 39 | ||||
| -rw-r--r-- | node_modules/date-fns/locale/de/index.js.flow | 35 | ||||
| -rw-r--r-- | node_modules/date-fns/locale/de/package.json | 5 |
9 files changed, 587 insertions, 0 deletions
diff --git a/node_modules/date-fns/locale/de/_lib/formatDistance/index.js b/node_modules/date-fns/locale/de/_lib/formatDistance/index.js new file mode 100644 index 0000000..25842d3 --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatDistance/index.js @@ -0,0 +1,184 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: 'weniger als 1 Sekunde', + other: 'weniger als {{count}} Sekunden' + }, + withPreposition: { + one: 'weniger als 1 Sekunde', + other: 'weniger als {{count}} Sekunden' + } + }, + xSeconds: { + standalone: { + one: '1 Sekunde', + other: '{{count}} Sekunden' + }, + withPreposition: { + one: '1 Sekunde', + other: '{{count}} Sekunden' + } + }, + halfAMinute: { + standalone: 'halbe Minute', + withPreposition: 'halben Minute' + }, + lessThanXMinutes: { + standalone: { + one: 'weniger als 1 Minute', + other: 'weniger als {{count}} Minuten' + }, + withPreposition: { + one: 'weniger als 1 Minute', + other: 'weniger als {{count}} Minuten' + } + }, + xMinutes: { + standalone: { + one: '1 Minute', + other: '{{count}} Minuten' + }, + withPreposition: { + one: '1 Minute', + other: '{{count}} Minuten' + } + }, + aboutXHours: { + standalone: { + one: 'etwa 1 Stunde', + other: 'etwa {{count}} Stunden' + }, + withPreposition: { + one: 'etwa 1 Stunde', + other: 'etwa {{count}} Stunden' + } + }, + xHours: { + standalone: { + one: '1 Stunde', + other: '{{count}} Stunden' + }, + withPreposition: { + one: '1 Stunde', + other: '{{count}} Stunden' + } + }, + xDays: { + standalone: { + one: '1 Tag', + other: '{{count}} Tage' + }, + withPreposition: { + one: '1 Tag', + other: '{{count}} Tagen' + } + }, + aboutXWeeks: { + standalone: { + one: 'etwa 1 Woche', + other: 'etwa {{count}} Wochen' + }, + withPreposition: { + one: 'etwa 1 Woche', + other: 'etwa {{count}} Wochen' + } + }, + xWeeks: { + standalone: { + one: '1 Woche', + other: '{{count}} Wochen' + }, + withPreposition: { + one: '1 Woche', + other: '{{count}} Wochen' + } + }, + aboutXMonths: { + standalone: { + one: 'etwa 1 Monat', + other: 'etwa {{count}} Monate' + }, + withPreposition: { + one: 'etwa 1 Monat', + other: 'etwa {{count}} Monaten' + } + }, + xMonths: { + standalone: { + one: '1 Monat', + other: '{{count}} Monate' + }, + withPreposition: { + one: '1 Monat', + other: '{{count}} Monaten' + } + }, + aboutXYears: { + standalone: { + one: 'etwa 1 Jahr', + other: 'etwa {{count}} Jahre' + }, + withPreposition: { + one: 'etwa 1 Jahr', + other: 'etwa {{count}} Jahren' + } + }, + xYears: { + standalone: { + one: '1 Jahr', + other: '{{count}} Jahre' + }, + withPreposition: { + one: '1 Jahr', + other: '{{count}} Jahren' + } + }, + overXYears: { + standalone: { + one: 'mehr als 1 Jahr', + other: 'mehr als {{count}} Jahre' + }, + withPreposition: { + one: 'mehr als 1 Jahr', + other: 'mehr als {{count}} Jahren' + } + }, + almostXYears: { + standalone: { + one: 'fast 1 Jahr', + other: 'fast {{count}} Jahre' + }, + withPreposition: { + one: 'fast 1 Jahr', + other: 'fast {{count}} Jahren' + } + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = options !== null && options !== void 0 && options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone; + 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 'in ' + result; + } else { + return 'vor ' + 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/de/_lib/formatLong/index.js b/node_modules/date-fns/locale/de/_lib/formatLong/index.js new file mode 100644 index 0000000..25b775c --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatLong/index.js @@ -0,0 +1,48 @@ +"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")); +// DIN 5008: https://de.wikipedia.org/wiki/Datumsformat#DIN_5008 +var dateFormats = { + full: 'EEEE, do MMMM y', + // Montag, 7. Januar 2018 + long: 'do MMMM y', + // 7. Januar 2018 + medium: 'do MMM y', + // 7. Jan. 2018 + short: 'dd.MM.y' // 07.01.2018 +}; + +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'um' {{time}}", + long: "{{date}} 'um' {{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/de/_lib/formatRelative/index.js b/node_modules/date-fns/locale/de/_lib/formatRelative/index.js new file mode 100644 index 0000000..00178bc --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'letzten' eeee 'um' p", + yesterday: "'gestern um' p", + today: "'heute um' p", + tomorrow: "'morgen um' p", + nextWeek: "eeee 'um' 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/de/_lib/localize/index.js b/node_modules/date-fns/locale/de/_lib/localize/index.js new file mode 100644 index 0000000..2e07c6a --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/localize/index.js @@ -0,0 +1,143 @@ +"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: ['v.Chr.', 'n.Chr.'], + abbreviated: ['v.Chr.', 'n.Chr.'], + wide: ['vor Christus', 'nach Christus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1. Quartal', '2. Quartal', '3. Quartal', '4. Quartal'] +}; + +// Note: in German, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], + wide: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'] +}; + +// https://st.unicode.org/cldr-apps/v#/de/Gregorian/ +var formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: ['Jan.', 'Feb.', 'März', 'Apr.', 'Mai', 'Juni', 'Juli', 'Aug.', 'Sep.', 'Okt.', 'Nov.', 'Dez.'], + wide: monthValues.wide +}; +var dayValues = { + narrow: ['S', 'M', 'D', 'M', 'D', 'F', 'S'], + short: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'], + abbreviated: ['So.', 'Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.'], + wide: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'] +}; + +// https://www.unicode.org/cldr/charts/32/summary/de.html#1881 +var dayPeriodValues = { + narrow: { + am: 'vm.', + pm: 'nm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'Morgen', + afternoon: 'Nachm.', + evening: 'Abend', + night: 'Nacht' + }, + abbreviated: { + am: 'vorm.', + pm: 'nachm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'Morgen', + afternoon: 'Nachmittag', + evening: 'Abend', + night: 'Nacht' + }, + wide: { + am: 'vormittags', + pm: 'nachmittags', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'Morgen', + afternoon: 'Nachmittag', + evening: 'Abend', + night: 'Nacht' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'vm.', + pm: 'nm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'morgens', + afternoon: 'nachm.', + evening: 'abends', + night: 'nachts' + }, + abbreviated: { + am: 'vorm.', + pm: 'nachm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'morgens', + afternoon: 'nachmittags', + evening: 'abends', + night: 'nachts' + }, + wide: { + am: 'vormittags', + pm: 'nachmittags', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'morgens', + afternoon: 'nachmittags', + evening: 'abends', + night: 'nachts' + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return number + '.'; +}; +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, + formattingValues: formattingMonthValues, + 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/de/_lib/match/index.js b/node_modules/date-fns/locale/de/_lib/match/index.js new file mode 100644 index 0000000..34cefc7 --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/match/index.js @@ -0,0 +1,109 @@ +"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+)(\.)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + wide: /^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i +}; +var parseEraPatterns = { + any: [/^v/i, /^n/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? Quartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i, + wide: /^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/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: [/^j[aä]/i, /^f/i, /^mär/i, /^ap/i, /^mai/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[smdmf]/i, + short: /^(so|mo|di|mi|do|fr|sa)/i, + abbreviated: /^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i, + wide: /^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i +}; +var parseDayPatterns = { + any: [/^so/i, /^mo/i, /^di/i, /^mi/i, /^do/i, /^f/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, + abbreviated: /^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, + wide: /^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^v/i, + pm: /^n/i, + midnight: /^Mitte/i, + noon: /^Mitta/i, + morning: /morgens/i, + afternoon: /nachmittags/i, + // will never be matched. Afternoon is matched by `pm` + evening: /abends/i, + night: /nachts/i // will never be matched. Night is matched by `pm` + } +}; + +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value); + } + }), + 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: 'wide', + 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/de/index.d.ts b/node_modules/date-fns/locale/de/index.d.ts new file mode 100644 index 0000000..ef552da --- /dev/null +++ b/node_modules/date-fns/locale/de/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { de } from 'date-fns/locale' +export default de diff --git a/node_modules/date-fns/locale/de/index.js b/node_modules/date-fns/locale/de/index.js new file mode 100644 index 0000000..eedd8a8 --- /dev/null +++ b/node_modules/date-fns/locale/de/index.js @@ -0,0 +1,39 @@ +"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 German locale. + * @language German + * @iso-639-2 deu + * @author Thomas Eilmsteiner [@DeMuu]{@link https://github.com/DeMuu} + * @author Asia [@asia-t]{@link https://github.com/asia-t} + * @author Van Vuong Ngo [@vanvuongngo]{@link https://github.com/vanvuongngo} + * @author RomanErnst [@pex]{@link https://github.com/pex} + * @author Philipp Keck [@Philipp91]{@link https://github.com/Philipp91} + */ +var locale = { + code: 'de', + 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/de/index.js.flow b/node_modules/date-fns/locale/de/index.js.flow new file mode 100644 index 0000000..b9dfe66 --- /dev/null +++ b/node_modules/date-fns/locale/de/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/de/package.json b/node_modules/date-fns/locale/de/package.json new file mode 100644 index 0000000..f8023ea --- /dev/null +++ b/node_modules/date-fns/locale/de/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/de/index.js", + "typings": "../../typings.d.ts" +}
\ No newline at end of file |
