PHP Classes

File: CoffeeCMS/contents/themes/cfnews/cfnews-html/assets/moment/locale/lt.js

Recommend this page to a friend!
  Classes of James Brows   Coffee CMS   CoffeeCMS/contents/themes/cfnews/cfnews-html/assets/moment/locale/lt.js   Download  
File: CoffeeCMS/contents/themes/cfnews/cfnews-html/assets/moment/locale/lt.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Coffee CMS
Content management system using MVC based themes
Author: By
Last change:
Date: 3 years ago
Size: 4,120 bytes
 

Contents

Class file image Download
//! moment.js locale configuration //! locale : Lithuanian [lt] //! author : Mindaugas Moz?ras : https://github.com/mmozuras ;(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'; var units = { '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' }; 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) { return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]); } 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) { return result + translateSingular(number, withoutSuffix, key[0], isFuture); } 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', { 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]?/ }, 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/ }, 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.]' }, calendar : { sameDay : '[?iandien] LT', nextDay : '[Rytoj] LT', nextWeek : 'dddd LT', lastDay : '[Vakar] LT', lastWeek : '[Pra?jus?] dddd LT', sameElse : 'L' }, relativeTime : { future : 'po %s', past : 'prie? %s', s : translateSeconds, m : translateSingular, mm : translate, h : translateSingular, hh : translate, d : translateSingular, dd : translate, M : translateSingular, MM : translate, y : translateSingular, yy : translate }, dayOfMonthOrdinalParse: /\d{1,2}-oji/, ordinal : function (number) { return number + '-oji'; }, 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. } }); return lt; })));