123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- "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 }; }
- function ordinalNumber(dirtyNumber) {
- var number = Number(dirtyNumber);
- return String(number).concat('.');
- }
- var eraValues = {
- narrow: ['pr.n.e.', 'AD'],
- abbreviated: ['pr. Hr.', 'po. Hr.'],
- wide: ['Pre Hrista', 'Posle Hrista']
- };
- var monthValues = {
- narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'],
- abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'avg', 'sep', 'okt', 'nov', 'dec'],
- wide: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar']
- };
- var formattingMonthValues = {
- narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'],
- abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'avg', 'sep', 'okt', 'nov', 'dec'],
- wide: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar']
- };
- var quarterValues = {
- narrow: ['1.', '2.', '3.', '4.'],
- abbreviated: ['1. kv.', '2. kv.', '3. kv.', '4. kv.'],
- wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal']
- };
- var dayValues = {
- narrow: ['N', 'P', 'U', 'S', 'Č', 'P', 'S'],
- short: ['ned', 'pon', 'uto', 'sre', 'čet', 'pet', 'sub'],
- abbreviated: ['ned', 'pon', 'uto', 'sre', 'čet', 'pet', 'sub'],
- wide: ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'četvrtak', 'petak', 'subota']
- };
- var formattingDayPeriodValues = {
- narrow: {
- am: 'AM',
- pm: 'PM',
- midnight: 'ponoć',
- noon: 'podne',
- morning: 'ujutru',
- afternoon: 'popodne',
- evening: 'uveče',
- night: 'noću'
- },
- abbreviated: {
- am: 'AM',
- pm: 'PM',
- midnight: 'ponoć',
- noon: 'podne',
- morning: 'ujutru',
- afternoon: 'popodne',
- evening: 'uveče',
- night: 'noću'
- },
- wide: {
- am: 'AM',
- pm: 'PM',
- midnight: 'ponoć',
- noon: 'podne',
- morning: 'ujutru',
- afternoon: 'posle podne',
- evening: 'uveče',
- night: 'noću'
- }
- };
- var dayPeriodValues = {
- narrow: {
- am: 'AM',
- pm: 'PM',
- midnight: 'ponoć',
- noon: 'podne',
- morning: 'ujutru',
- afternoon: 'popodne',
- evening: 'uveče',
- night: 'noću'
- },
- abbreviated: {
- am: 'AM',
- pm: 'PM',
- midnight: 'ponoć',
- noon: 'podne',
- morning: 'ujutru',
- afternoon: 'popodne',
- evening: 'uveče',
- night: 'noću'
- },
- wide: {
- am: 'AM',
- pm: 'PM',
- midnight: 'ponoć',
- noon: 'podne',
- morning: 'ujutru',
- afternoon: 'posle podne',
- evening: 'uveče',
- night: 'noću'
- }
- };
- 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',
- formattingValues: formattingMonthValues,
- defaultFormattingWidth: '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;
|