Node-Red configuration
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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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:
  66. 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
  67. '_'
  68. ),
  69. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,
  70. },
  71. monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  72. weekdays: {
  73. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
  74. '_'
  75. ),
  76. standalone:
  77. 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
  78. '_'
  79. ),
  80. isFormat: /dddd HH:mm/,
  81. },
  82. weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  83. weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
  84. weekdaysParseExact: true,
  85. longDateFormat: {
  86. LT: 'HH:mm',
  87. LTS: 'HH:mm:ss',
  88. L: 'YYYY-MM-DD',
  89. LL: 'YYYY [m.] MMMM D [d.]',
  90. LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  91. LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  92. l: 'YYYY-MM-DD',
  93. ll: 'YYYY [m.] MMMM D [d.]',
  94. lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  95. llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',
  96. },
  97. calendar: {
  98. sameDay: '[Šiandien] LT',
  99. nextDay: '[Rytoj] LT',
  100. nextWeek: 'dddd LT',
  101. lastDay: '[Vakar] LT',
  102. lastWeek: '[Praėjusį] dddd LT',
  103. sameElse: 'L',
  104. },
  105. relativeTime: {
  106. future: 'po %s',
  107. past: 'prieš %s',
  108. s: translateSeconds,
  109. ss: translate,
  110. m: translateSingular,
  111. mm: translate,
  112. h: translateSingular,
  113. hh: translate,
  114. d: translateSingular,
  115. dd: translate,
  116. M: translateSingular,
  117. MM: translate,
  118. y: translateSingular,
  119. yy: translate,
  120. },
  121. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  122. ordinal: function (number) {
  123. return number + '-oji';
  124. },
  125. week: {
  126. dow: 1, // Monday is the first day of the week.
  127. doy: 4, // The week that contains Jan 4th is the first week of the year.
  128. },
  129. });
  130. return lt;
  131. })));