137 lines
3.4 KiB
JavaScript
137 lines
3.4 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: ['e.m.a', 'm.a.j'],
|
||
|
abbreviated: ['e.m.a', 'm.a.j'],
|
||
|
wide: ['enne meie ajaarvamist', 'meie ajaarvamise järgi']
|
||
|
};
|
||
|
var quarterValues = {
|
||
|
narrow: ['1', '2', '3', '4'],
|
||
|
abbreviated: ['K1', 'K2', 'K3', 'K4'],
|
||
|
wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal']
|
||
|
};
|
||
|
var monthValues = {
|
||
|
narrow: ['J', 'V', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
|
||
|
abbreviated: ['jaan', 'veebr', 'märts', 'apr', 'mai', 'juuni', 'juuli', 'aug', 'sept', 'okt', 'nov', 'dets'],
|
||
|
wide: ['jaanuar', 'veebruar', 'märts', 'aprill', 'mai', 'juuni', 'juuli', 'august', 'september', 'oktoober', 'november', 'detsember']
|
||
|
};
|
||
|
var dayValues = {
|
||
|
narrow: ['P', 'E', 'T', 'K', 'N', 'R', 'L'],
|
||
|
short: ['P', 'E', 'T', 'K', 'N', 'R', 'L'],
|
||
|
abbreviated: ['pühap.', 'esmasp.', 'teisip.', 'kolmap.', 'neljap.', 'reede.', 'laup.'],
|
||
|
wide: ['pühapäev', 'esmaspäev', 'teisipäev', 'kolmapäev', 'neljapäev', 'reede', 'laupäev']
|
||
|
};
|
||
|
var dayPeriodValues = {
|
||
|
narrow: {
|
||
|
am: 'AM',
|
||
|
pm: 'PM',
|
||
|
midnight: 'kesköö',
|
||
|
noon: 'keskpäev',
|
||
|
morning: 'hommik',
|
||
|
afternoon: 'pärastlõuna',
|
||
|
evening: 'õhtu',
|
||
|
night: 'öö'
|
||
|
},
|
||
|
abbreviated: {
|
||
|
am: 'AM',
|
||
|
pm: 'PM',
|
||
|
midnight: 'kesköö',
|
||
|
noon: 'keskpäev',
|
||
|
morning: 'hommik',
|
||
|
afternoon: 'pärastlõuna',
|
||
|
evening: 'õhtu',
|
||
|
night: 'öö'
|
||
|
},
|
||
|
wide: {
|
||
|
am: 'AM',
|
||
|
pm: 'PM',
|
||
|
midnight: 'kesköö',
|
||
|
noon: 'keskpäev',
|
||
|
morning: 'hommik',
|
||
|
afternoon: 'pärastlõuna',
|
||
|
evening: 'õhtu',
|
||
|
night: 'öö'
|
||
|
}
|
||
|
};
|
||
|
var formattingDayPeriodValues = {
|
||
|
narrow: {
|
||
|
am: 'AM',
|
||
|
pm: 'PM',
|
||
|
midnight: 'keskööl',
|
||
|
noon: 'keskpäeval',
|
||
|
morning: 'hommikul',
|
||
|
afternoon: 'pärastlõunal',
|
||
|
evening: 'õhtul',
|
||
|
night: 'öösel'
|
||
|
},
|
||
|
abbreviated: {
|
||
|
am: 'AM',
|
||
|
pm: 'PM',
|
||
|
midnight: 'keskööl',
|
||
|
noon: 'keskpäeval',
|
||
|
morning: 'hommikul',
|
||
|
afternoon: 'pärastlõunal',
|
||
|
evening: 'õhtul',
|
||
|
night: 'öösel'
|
||
|
},
|
||
|
wide: {
|
||
|
am: 'AM',
|
||
|
pm: 'PM',
|
||
|
midnight: 'keskööl',
|
||
|
noon: 'keskpäeval',
|
||
|
morning: 'hommikul',
|
||
|
afternoon: 'pärastlõunal',
|
||
|
evening: 'õhtul',
|
||
|
night: 'öösel'
|
||
|
}
|
||
|
};
|
||
|
|
||
|
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',
|
||
|
formattingValues: monthValues,
|
||
|
defaultFormattingWidth: 'wide'
|
||
|
}),
|
||
|
day: (0, _index.default)({
|
||
|
values: dayValues,
|
||
|
defaultWidth: 'wide',
|
||
|
formattingValues: dayValues,
|
||
|
defaultFormattingWidth: 'wide'
|
||
|
}),
|
||
|
dayPeriod: (0, _index.default)({
|
||
|
values: dayPeriodValues,
|
||
|
defaultWidth: 'wide',
|
||
|
formattingValues: formattingDayPeriodValues,
|
||
|
defaultFormattingWidth: 'wide'
|
||
|
})
|
||
|
};
|
||
|
var _default = localize;
|
||
|
exports.default = _default;
|
||
|
module.exports = exports.default;
|