2019-06-10 17:38:54 +02:00
|
|
|
//! moment.js locale configuration
|
2020-07-23 23:12:30 +02:00
|
|
|
//! locale : Lithuanian [lt]
|
|
|
|
//! author : Mindaugas Mozūras : https://github.com/mmozuras
|
2019-06-10 17:38:54 +02:00
|
|
|
|
|
|
|
;(function (global, factory) {
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
|
|
|
factory(global.moment)
|
|
|
|
}(this, (function (moment) { 'use strict';
|
|
|
|
|
2020-07-23 23:12:30 +02:00
|
|
|
//! moment.js locale configuration
|
2019-06-10 17:38:54 +02:00
|
|
|
|
|
|
|
var units = {
|
2020-07-23 23:12:30 +02:00
|
|
|
ss: 'sekundė_sekundžių_sekundes',
|
|
|
|
m: 'minutė_minutės_minutę',
|
|
|
|
mm: 'minutės_minučių_minutes',
|
|
|
|
h: 'valanda_valandos_valandą',
|
|
|
|
hh: 'valandos_valandų_valandas',
|
|
|
|
d: 'diena_dienos_dieną',
|
|
|
|
dd: 'dienos_dienų_dienas',
|
|
|
|
M: 'mėnuo_mėnesio_mėnesį',
|
|
|
|
MM: 'mėnesiai_mėnesių_mėnesius',
|
|
|
|
y: 'metai_metų_metus',
|
|
|
|
yy: 'metai_metų_metus',
|
2019-06-10 17:38:54 +02:00
|
|
|
};
|
|
|
|
function translateSeconds(number, withoutSuffix, key, isFuture) {
|
|
|
|
if (withoutSuffix) {
|
|
|
|
return 'kelios sekundės';
|
|
|
|
} else {
|
|
|
|
return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function translateSingular(number, withoutSuffix, key, isFuture) {
|
2020-07-23 23:12:30 +02:00
|
|
|
return withoutSuffix
|
|
|
|
? forms(key)[0]
|
|
|
|
: isFuture
|
|
|
|
? forms(key)[1]
|
|
|
|
: forms(key)[2];
|
2019-06-10 17:38:54 +02:00
|
|
|
}
|
|
|
|
function special(number) {
|
|
|
|
return number % 10 === 0 || (number > 10 && number < 20);
|
|
|
|
}
|
|
|
|
function forms(key) {
|
|
|
|
return units[key].split('_');
|
|
|
|
}
|
|
|
|
function translate(number, withoutSuffix, key, isFuture) {
|
|
|
|
var result = number + ' ';
|
|
|
|
if (number === 1) {
|
2020-07-23 23:12:30 +02:00
|
|
|
return (
|
|
|
|
result + translateSingular(number, withoutSuffix, key[0], isFuture)
|
|
|
|
);
|
2019-06-10 17:38:54 +02:00
|
|
|
} else if (withoutSuffix) {
|
|
|
|
return result + (special(number) ? forms(key)[1] : forms(key)[0]);
|
|
|
|
} else {
|
|
|
|
if (isFuture) {
|
|
|
|
return result + forms(key)[1];
|
|
|
|
} else {
|
|
|
|
return result + (special(number) ? forms(key)[1] : forms(key)[2]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var lt = moment.defineLocale('lt', {
|
2020-07-23 23:12:30 +02:00
|
|
|
months: {
|
|
|
|
format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,
|
2019-06-10 17:38:54 +02:00
|
|
|
},
|
2020-07-23 23:12:30 +02:00
|
|
|
monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
|
|
|
|
weekdays: {
|
|
|
|
format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
isFormat: /dddd HH:mm/,
|
2019-06-10 17:38:54 +02:00
|
|
|
},
|
2020-07-23 23:12:30 +02:00
|
|
|
weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
|
|
|
|
weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
|
|
|
|
weekdaysParseExact: true,
|
|
|
|
longDateFormat: {
|
|
|
|
LT: 'HH:mm',
|
|
|
|
LTS: 'HH:mm:ss',
|
|
|
|
L: 'YYYY-MM-DD',
|
|
|
|
LL: 'YYYY [m.] MMMM D [d.]',
|
|
|
|
LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
|
|
|
|
LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
|
|
|
|
l: 'YYYY-MM-DD',
|
|
|
|
ll: 'YYYY [m.] MMMM D [d.]',
|
|
|
|
lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
|
|
|
|
llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',
|
2019-06-10 17:38:54 +02:00
|
|
|
},
|
2020-07-23 23:12:30 +02:00
|
|
|
calendar: {
|
|
|
|
sameDay: '[Šiandien] LT',
|
|
|
|
nextDay: '[Rytoj] LT',
|
|
|
|
nextWeek: 'dddd LT',
|
|
|
|
lastDay: '[Vakar] LT',
|
|
|
|
lastWeek: '[Praėjusį] dddd LT',
|
|
|
|
sameElse: 'L',
|
2019-06-10 17:38:54 +02:00
|
|
|
},
|
2020-07-23 23:12:30 +02:00
|
|
|
relativeTime: {
|
|
|
|
future: 'po %s',
|
|
|
|
past: 'prieš %s',
|
|
|
|
s: translateSeconds,
|
|
|
|
ss: translate,
|
|
|
|
m: translateSingular,
|
|
|
|
mm: translate,
|
|
|
|
h: translateSingular,
|
|
|
|
hh: translate,
|
|
|
|
d: translateSingular,
|
|
|
|
dd: translate,
|
|
|
|
M: translateSingular,
|
|
|
|
MM: translate,
|
|
|
|
y: translateSingular,
|
|
|
|
yy: translate,
|
2019-06-10 17:38:54 +02:00
|
|
|
},
|
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}-oji/,
|
2020-07-23 23:12:30 +02:00
|
|
|
ordinal: function (number) {
|
2019-06-10 17:38:54 +02:00
|
|
|
return number + '-oji';
|
|
|
|
},
|
2020-07-23 23:12:30 +02:00
|
|
|
week: {
|
|
|
|
dow: 1, // Monday is the first day of the week.
|
|
|
|
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
|
|
},
|
2019-06-10 17:38:54 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
return lt;
|
|
|
|
|
|
|
|
})));
|