123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js"));
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- var eraValues = {
- narrow: ['v.Chr.', 'n.Chr.'],
- abbreviated: ['v.Chr.', 'n.Chr.'],
- wide: ['viru Christus', 'no Christus']
- };
- var quarterValues = {
- narrow: ['1', '2', '3', '4'],
- abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
- wide: ['1. Quartal', '2. Quartal', '3. Quartal', '4. Quartal']
- };
- var monthValues = {
- narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
- abbreviated: ['Jan', 'Feb', 'Mäe', 'Abr', 'Mee', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'],
- wide: ['Januar', 'Februar', 'Mäerz', 'Abrëll', 'Mee', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember']
- };
- var dayValues = {
- narrow: ['S', 'M', 'D', 'M', 'D', 'F', 'S'],
- short: ['So', 'Mé', 'Dë', 'Më', 'Do', 'Fr', 'Sa'],
- abbreviated: ['So.', 'Mé.', 'Dë.', 'Më.', 'Do.', 'Fr.', 'Sa.'],
- wide: ['Sonndeg', 'Méindeg', 'Dënschdeg', 'Mëttwoch', 'Donneschdeg', 'Freideg', 'Samschdeg']
- };
- var dayPeriodValues = {
- narrow: {
- am: 'mo.',
- pm: 'nomë.',
- midnight: 'Mëtternuecht',
- noon: 'Mëtteg',
- morning: 'Moien',
- afternoon: 'Nomëtteg',
- evening: 'Owend',
- night: 'Nuecht'
- },
- abbreviated: {
- am: 'moies',
- pm: 'nomëttes',
- midnight: 'Mëtternuecht',
- noon: 'Mëtteg',
- morning: 'Moien',
- afternoon: 'Nomëtteg',
- evening: 'Owend',
- night: 'Nuecht'
- },
- wide: {
- am: 'moies',
- pm: 'nomëttes',
- midnight: 'Mëtternuecht',
- noon: 'Mëtteg',
- morning: 'Moien',
- afternoon: 'Nomëtteg',
- evening: 'Owend',
- night: 'Nuecht'
- }
- };
- var formattingDayPeriodValues = {
- narrow: {
- am: 'mo.',
- pm: 'nom.',
- midnight: 'Mëtternuecht',
- noon: 'mëttes',
- morning: 'moies',
- afternoon: 'nomëttes',
- evening: 'owes',
- night: 'nuets'
- },
- abbreviated: {
- am: 'moies',
- pm: 'nomëttes',
- midnight: 'Mëtternuecht',
- noon: 'mëttes',
- morning: 'moies',
- afternoon: 'nomëttes',
- evening: 'owes',
- night: 'nuets'
- },
- wide: {
- am: 'moies',
- pm: 'nomëttes',
- midnight: 'Mëtternuecht',
- noon: 'mëttes',
- morning: 'moies',
- afternoon: 'nomëttes',
- evening: 'owes',
- night: 'nuets'
- }
- };
- function ordinalNumber(dirtyNumber, _dirtyOptions) {
- 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 (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',
- formattingValues: formattingDayPeriodValues,
- defaultFormattingWidth: 'wide'
- })
- };
- var _default = localize;
- exports.default = _default;
- module.exports = exports.default;
|