LaravelTest
181 строка · 6.9 Кб
1//! moment.js locale configuration
2//! locale : Slovenian [sl]
3//! author : Robert Sedovšek : https://github.com/sedovsek
4
5;(function (global, factory) {6typeof exports === 'object' && typeof module !== 'undefined'7&& typeof require === 'function' ? factory(require('../moment')) :8typeof define === 'function' && define.amd ? define(['../moment'], factory) :9factory(global.moment)10}(this, (function (moment) { 'use strict';11
12//! moment.js locale configuration13
14function processRelativeTime(number, withoutSuffix, key, isFuture) {15var result = number + ' ';16switch (key) {17case 's':18return withoutSuffix || isFuture19? 'nekaj sekund'20: 'nekaj sekundami';21case 'ss':22if (number === 1) {23result += withoutSuffix ? 'sekundo' : 'sekundi';24} else if (number === 2) {25result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';26} else if (number < 5) {27result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';28} else {29result += 'sekund';30}31return result;32case 'm':33return withoutSuffix ? 'ena minuta' : 'eno minuto';34case 'mm':35if (number === 1) {36result += withoutSuffix ? 'minuta' : 'minuto';37} else if (number === 2) {38result += withoutSuffix || isFuture ? 'minuti' : 'minutama';39} else if (number < 5) {40result += withoutSuffix || isFuture ? 'minute' : 'minutami';41} else {42result += withoutSuffix || isFuture ? 'minut' : 'minutami';43}44return result;45case 'h':46return withoutSuffix ? 'ena ura' : 'eno uro';47case 'hh':48if (number === 1) {49result += withoutSuffix ? 'ura' : 'uro';50} else if (number === 2) {51result += withoutSuffix || isFuture ? 'uri' : 'urama';52} else if (number < 5) {53result += withoutSuffix || isFuture ? 'ure' : 'urami';54} else {55result += withoutSuffix || isFuture ? 'ur' : 'urami';56}57return result;58case 'd':59return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';60case 'dd':61if (number === 1) {62result += withoutSuffix || isFuture ? 'dan' : 'dnem';63} else if (number === 2) {64result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';65} else {66result += withoutSuffix || isFuture ? 'dni' : 'dnevi';67}68return result;69case 'M':70return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';71case 'MM':72if (number === 1) {73result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';74} else if (number === 2) {75result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';76} else if (number < 5) {77result += withoutSuffix || isFuture ? 'mesece' : 'meseci';78} else {79result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';80}81return result;82case 'y':83return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';84case 'yy':85if (number === 1) {86result += withoutSuffix || isFuture ? 'leto' : 'letom';87} else if (number === 2) {88result += withoutSuffix || isFuture ? 'leti' : 'letoma';89} else if (number < 5) {90result += withoutSuffix || isFuture ? 'leta' : 'leti';91} else {92result += withoutSuffix || isFuture ? 'let' : 'leti';93}94return result;95}96}97
98var sl = moment.defineLocale('sl', {99months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(100'_'101),102monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(103'_'104),105monthsParseExact: true,106weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),107weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),108weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),109weekdaysParseExact: true,110longDateFormat: {111LT: 'H:mm',112LTS: 'H:mm:ss',113L: 'DD. MM. YYYY',114LL: 'D. MMMM YYYY',115LLL: 'D. MMMM YYYY H:mm',116LLLL: 'dddd, D. MMMM YYYY H:mm',117},118calendar: {119sameDay: '[danes ob] LT',120nextDay: '[jutri ob] LT',121
122nextWeek: function () {123switch (this.day()) {124case 0:125return '[v] [nedeljo] [ob] LT';126case 3:127return '[v] [sredo] [ob] LT';128case 6:129return '[v] [soboto] [ob] LT';130case 1:131case 2:132case 4:133case 5:134return '[v] dddd [ob] LT';135}136},137lastDay: '[včeraj ob] LT',138lastWeek: function () {139switch (this.day()) {140case 0:141return '[prejšnjo] [nedeljo] [ob] LT';142case 3:143return '[prejšnjo] [sredo] [ob] LT';144case 6:145return '[prejšnjo] [soboto] [ob] LT';146case 1:147case 2:148case 4:149case 5:150return '[prejšnji] dddd [ob] LT';151}152},153sameElse: 'L',154},155relativeTime: {156future: 'čez %s',157past: 'pred %s',158s: processRelativeTime,159ss: processRelativeTime,160m: processRelativeTime,161mm: processRelativeTime,162h: processRelativeTime,163hh: processRelativeTime,164d: processRelativeTime,165dd: processRelativeTime,166M: processRelativeTime,167MM: processRelativeTime,168y: processRelativeTime,169yy: processRelativeTime,170},171dayOfMonthOrdinalParse: /\d{1,2}\./,172ordinal: '%d.',173week: {174dow: 1, // Monday is the first day of the week.175doy: 7, // The week that contains Jan 7th is the first week of the year.176},177});178
179return sl;180
181})));182