Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

lt.js 4.7KB

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