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.