hugoWebsite/node_modules/date-fns/locale/gl/_lib/localize/index.js

133 lines
3.2 KiB
JavaScript
Raw Normal View History

2022-10-29 00:20:35 +02:00
"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: ['AC', 'DC'],
abbreviated: ['AC', 'DC'],
wide: ['antes de cristo', 'despois de cristo']
};
var quarterValues = {
narrow: ['1', '2', '3', '4'],
abbreviated: ['T1', 'T2', 'T3', 'T4'],
wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre']
};
var monthValues = {
narrow: ['e', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'],
abbreviated: ['xan', 'feb', 'mar', 'abr', 'mai', 'xun', 'xul', 'ago', 'set', 'out', 'nov', 'dec'],
wide: ['xaneiro', 'febreiro', 'marzo', 'abril', 'maio', 'xuño', 'xullo', 'agosto', 'setembro', 'outubro', 'novembro', 'decembro']
};
var dayValues = {
narrow: ['d', 'l', 'm', 'm', 'j', 'v', 's'],
short: ['do', 'lu', 'ma', 'me', 'xo', 've', 'sa'],
abbreviated: ['dom', 'lun', 'mar', 'mer', 'xov', 'ven', 'sab'],
wide: ['domingo', 'luns', 'martes', 'mércores', 'xoves', 'venres', 'sábado']
};
var dayPeriodValues = {
narrow: {
am: 'a',
pm: 'p',
midnight: 'mn',
noon: 'md',
morning: 'mañá',
afternoon: 'tarde',
evening: 'tarde',
night: 'noite'
},
abbreviated: {
am: 'AM',
pm: 'PM',
midnight: 'medianoite',
noon: 'mediodía',
morning: 'mañá',
afternoon: 'tarde',
evening: 'tardiña',
night: 'noite'
},
wide: {
am: 'a.m.',
pm: 'p.m.',
midnight: 'medianoite',
noon: 'mediodía',
morning: 'mañá',
afternoon: 'tarde',
evening: 'tardiña',
night: 'noite'
}
};
var formattingDayPeriodValues = {
narrow: {
am: 'a',
pm: 'p',
midnight: 'mn',
noon: 'md',
morning: 'da mañá',
afternoon: 'da tarde',
evening: 'da tardiña',
night: 'da noite'
},
abbreviated: {
am: 'AM',
pm: 'PM',
midnight: 'medianoite',
noon: 'mediodía',
morning: 'da mañá',
afternoon: 'da tarde',
evening: 'da tardiña',
night: 'da noite'
},
wide: {
am: 'a.m.',
pm: 'p.m.',
midnight: 'medianoite',
noon: 'mediodía',
morning: 'da mañá',
afternoon: 'da tarde',
evening: 'da tardiña',
night: 'da noite'
}
};
var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
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,
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;