PageSourceSearch

https://www.bezrindas.lv/js/moment_locales/lv.js

js bezrindas.lv collected 2026-10-02 05:13:41 UTC 2,262 bytes, 67 lines download raw bytes

1// moment.js language configuration
2// language : latvian (lv)
3// author : Kristaps Karlsons : https://github.com/skakri
4
5var units = {
6    'mm': 'minūti_minūtes_minūte_minūtes',
7    'hh': 'stundu_stundas_stunda_stundas',
8    'dd': 'dienu_dienas_diena_dienas',
9    'MM': 'mēnesi_mēnešus_mēnesis_mēneši',
10    'yy': 'gadu_gadus_gads_gadi'
11};
12
13function format(word, number, withoutSuffix) {
14    var forms = word.split('_');
15    if (withoutSuffix) {
16        return number % 10 === 1 && number !== 11 ? forms[2] : forms[3];
17    } else {
18        return number % 10 === 1 && number !== 11 ? forms[0] : forms[1];
19    }
20}
21
22function relativeTimeWithPlural(number, withoutSuffix, key) {
23    return number + ' ' + format(units[key], number, withoutSuffix);
24}
25
26moment.locale('lv', {
27    months : "Janvāris_Februāris_Marts_Aprīlis_Maijs_Jūnijs_Jūlijs_Augusts_Septembris_Oktobris_Novembris_Decembris".split("_"),
28    monthsShort : "Jan_Feb_Mar_Apr_Mai_Jūn_Jūl_Aug_Sep_Okt_Nov_Dec".split("_"),
29    weekdays : "svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),
30    weekdaysShort : "Sv_P_O_T_C_Pk_S".split("_"),
31    weekdaysMin : "Sv_P_O_T_C_Pk_S".split("_"),
32    longDateFormat : {
33        LT : "HH:mm",
34        L : "YYYY.MM.DD.",
35        LL : "YYYY. [gada] D. MMMM",
36        LLL : "YYYY. [gada] D. MMMM, LT",
37        LLLL : "YYYY. [gada] D. MMMM, dddd, LT"
38    },
39    calendar : {
40        sameDay : '[Å odien pulksten] LT',
41        nextDay : '[Rīt pulksten] LT',
42        nextWeek : 'dddd [pulksten] LT',
43        lastDay : '[Vakar pulksten] LT',
44        lastWeek : '[Pagājušā] dddd [pulksten] LT',
45        sameElse : 'L'
46    },
47    relativeTime : {
48        future : "%s vēlāk",
49        past : "%s agrāk",
50        s : "dažas sekundes",
51        m : "minūti",
52        mm : relativeTimeWithPlural,
53        h : "stundu",
54        hh : relativeTimeWithPlural,
55        d : "dienu",
56        dd : relativeTimeWithPlural,
57        M : "mēnesi",
58        MM : relativeTimeWithPlural,
59        y : "gadu",
60        yy : relativeTimeWithPlural
61    },
62    ordinal : '%d.',
63    week : {
64        dow : 1, // Monday is the first day of the week.
65        doy : 4  // The week that contains Jan 4th is the first week of the year.
66    }
67});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.