132 lines
3.2 KiB
JavaScript
132 lines
3.2 KiB
JavaScript
"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: ['Î', 'D'],
|
|
abbreviated: ['Î.d.C.', 'D.C.'],
|
|
wide: ['Înainte de Cristos', 'După Cristos']
|
|
};
|
|
var quarterValues = {
|
|
narrow: ['1', '2', '3', '4'],
|
|
abbreviated: ['T1', 'T2', 'T3', 'T4'],
|
|
wide: ['primul trimestru', 'al doilea trimestru', 'al treilea trimestru', 'al patrulea trimestru']
|
|
};
|
|
var monthValues = {
|
|
narrow: ['I', 'F', 'M', 'A', 'M', 'I', 'I', 'A', 'S', 'O', 'N', 'D'],
|
|
abbreviated: ['ian', 'feb', 'mar', 'apr', 'mai', 'iun', 'iul', 'aug', 'sep', 'oct', 'noi', 'dec'],
|
|
wide: ['ianuarie', 'februarie', 'martie', 'aprilie', 'mai', 'iunie', 'iulie', 'august', 'septembrie', 'octombrie', 'noiembrie', 'decembrie']
|
|
};
|
|
var dayValues = {
|
|
narrow: ['d', 'l', 'm', 'm', 'j', 'v', 's'],
|
|
short: ['du', 'lu', 'ma', 'mi', 'jo', 'vi', 'sâ'],
|
|
abbreviated: ['dum', 'lun', 'mar', 'mie', 'joi', 'vin', 'sâm'],
|
|
wide: ['duminică', 'luni', 'marți', 'miercuri', 'joi', 'vineri', 'sâmbătă']
|
|
};
|
|
var dayPeriodValues = {
|
|
narrow: {
|
|
am: 'a',
|
|
pm: 'p',
|
|
midnight: 'mn',
|
|
noon: 'ami',
|
|
morning: 'dim',
|
|
afternoon: 'da',
|
|
evening: 's',
|
|
night: 'n'
|
|
},
|
|
abbreviated: {
|
|
am: 'AM',
|
|
pm: 'PM',
|
|
midnight: 'miezul nopții',
|
|
noon: 'amiază',
|
|
morning: 'dimineață',
|
|
afternoon: 'după-amiază',
|
|
evening: 'seară',
|
|
night: 'noapte'
|
|
},
|
|
wide: {
|
|
am: 'a.m.',
|
|
pm: 'p.m.',
|
|
midnight: 'miezul nopții',
|
|
noon: 'amiază',
|
|
morning: 'dimineață',
|
|
afternoon: 'după-amiază',
|
|
evening: 'seară',
|
|
night: 'noapte'
|
|
}
|
|
};
|
|
var formattingDayPeriodValues = {
|
|
narrow: {
|
|
am: 'a',
|
|
pm: 'p',
|
|
midnight: 'mn',
|
|
noon: 'amiază',
|
|
morning: 'dimineață',
|
|
afternoon: 'după-amiază',
|
|
evening: 'seară',
|
|
night: 'noapte'
|
|
},
|
|
abbreviated: {
|
|
am: 'AM',
|
|
pm: 'PM',
|
|
midnight: 'miezul nopții',
|
|
noon: 'amiază',
|
|
morning: 'dimineață',
|
|
afternoon: 'după-amiază',
|
|
evening: 'seară',
|
|
night: 'noapte'
|
|
},
|
|
wide: {
|
|
am: 'a.m.',
|
|
pm: 'p.m.',
|
|
midnight: 'miezul nopții',
|
|
noon: 'amiază',
|
|
morning: 'dimineață',
|
|
afternoon: 'după-amiază',
|
|
evening: 'seară',
|
|
night: 'noapte'
|
|
}
|
|
};
|
|
|
|
var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
|
|
return String(dirtyNumber);
|
|
};
|
|
|
|
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; |