LaravelTest
134 строки · 4.7 Кб
1//! moment.js locale configuration
2//! locale : Lithuanian [lt]
3//! author : Mindaugas Mozūras : https://github.com/mmozuras
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
14var units = {15ss: 'sekundė_sekundžių_sekundes',16m: 'minutė_minutės_minutę',17mm: 'minutės_minučių_minutes',18h: 'valanda_valandos_valandą',19hh: 'valandos_valandų_valandas',20d: 'diena_dienos_dieną',21dd: 'dienos_dienų_dienas',22M: 'mėnuo_mėnesio_mėnesį',23MM: 'mėnesiai_mėnesių_mėnesius',24y: 'metai_metų_metus',25yy: 'metai_metų_metus',26};27function translateSeconds(number, withoutSuffix, key, isFuture) {28if (withoutSuffix) {29return 'kelios sekundės';30} else {31return isFuture ? 'kelių sekundžių' : 'kelias sekundes';32}33}34function translateSingular(number, withoutSuffix, key, isFuture) {35return withoutSuffix36? forms(key)[0]37: isFuture38? forms(key)[1]39: forms(key)[2];40}41function special(number) {42return number % 10 === 0 || (number > 10 && number < 20);43}44function forms(key) {45return units[key].split('_');46}47function translate(number, withoutSuffix, key, isFuture) {48var result = number + ' ';49if (number === 1) {50return (51result + translateSingular(number, withoutSuffix, key[0], isFuture)52);53} else if (withoutSuffix) {54return result + (special(number) ? forms(key)[1] : forms(key)[0]);55} else {56if (isFuture) {57return result + forms(key)[1];58} else {59return result + (special(number) ? forms(key)[1] : forms(key)[2]);60}61}62}63var lt = moment.defineLocale('lt', {64months: {65format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(66'_'67),68standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(69'_'70),71isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,72},73monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),74weekdays: {75format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(76'_'77),78standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(79'_'80),81isFormat: /dddd HH:mm/,82},83weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),84weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),85weekdaysParseExact: true,86longDateFormat: {87LT: 'HH:mm',88LTS: 'HH:mm:ss',89L: 'YYYY-MM-DD',90LL: 'YYYY [m.] MMMM D [d.]',91LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',92LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',93l: 'YYYY-MM-DD',94ll: 'YYYY [m.] MMMM D [d.]',95lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',96llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',97},98calendar: {99sameDay: '[Šiandien] LT',100nextDay: '[Rytoj] LT',101nextWeek: 'dddd LT',102lastDay: '[Vakar] LT',103lastWeek: '[Praėjusį] dddd LT',104sameElse: 'L',105},106relativeTime: {107future: 'po %s',108past: 'prieš %s',109s: translateSeconds,110ss: translate,111m: translateSingular,112mm: translate,113h: translateSingular,114hh: translate,115d: translateSingular,116dd: translate,117M: translateSingular,118MM: translate,119y: translateSingular,120yy: translate,121},122dayOfMonthOrdinalParse: /\d{1,2}-oji/,123ordinal: function (number) {124return number + '-oji';125},126week: {127dow: 1, // Monday is the first day of the week.128doy: 4, // The week that contains Jan 4th is the first week of the year.129},130});131
132return lt;133
134})));135