Node-Red configuration
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. //! moment.js locale configuration
  2. //! locale : Croatian [hr]
  3. //! author : Bojan Marković : https://github.com/bmarkovic
  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. function translate(number, withoutSuffix, key) {
  12. var result = number + ' ';
  13. switch (key) {
  14. case 'ss':
  15. if (number === 1) {
  16. result += 'sekunda';
  17. } else if (number === 2 || number === 3 || number === 4) {
  18. result += 'sekunde';
  19. } else {
  20. result += 'sekundi';
  21. }
  22. return result;
  23. case 'm':
  24. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  25. case 'mm':
  26. if (number === 1) {
  27. result += 'minuta';
  28. } else if (number === 2 || number === 3 || number === 4) {
  29. result += 'minute';
  30. } else {
  31. result += 'minuta';
  32. }
  33. return result;
  34. case 'h':
  35. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  36. case 'hh':
  37. if (number === 1) {
  38. result += 'sat';
  39. } else if (number === 2 || number === 3 || number === 4) {
  40. result += 'sata';
  41. } else {
  42. result += 'sati';
  43. }
  44. return result;
  45. case 'dd':
  46. if (number === 1) {
  47. result += 'dan';
  48. } else {
  49. result += 'dana';
  50. }
  51. return result;
  52. case 'MM':
  53. if (number === 1) {
  54. result += 'mjesec';
  55. } else if (number === 2 || number === 3 || number === 4) {
  56. result += 'mjeseca';
  57. } else {
  58. result += 'mjeseci';
  59. }
  60. return result;
  61. case 'yy':
  62. if (number === 1) {
  63. result += 'godina';
  64. } else if (number === 2 || number === 3 || number === 4) {
  65. result += 'godine';
  66. } else {
  67. result += 'godina';
  68. }
  69. return result;
  70. }
  71. }
  72. var hr = moment.defineLocale('hr', {
  73. months: {
  74. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
  75. '_'
  76. ),
  77. standalone:
  78. 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(
  79. '_'
  80. ),
  81. },
  82. monthsShort:
  83. 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(
  84. '_'
  85. ),
  86. monthsParseExact: true,
  87. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  88. '_'
  89. ),
  90. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  91. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  92. weekdaysParseExact: true,
  93. longDateFormat: {
  94. LT: 'H:mm',
  95. LTS: 'H:mm:ss',
  96. L: 'DD.MM.YYYY',
  97. LL: 'Do MMMM YYYY',
  98. LLL: 'Do MMMM YYYY H:mm',
  99. LLLL: 'dddd, Do MMMM YYYY H:mm',
  100. },
  101. calendar: {
  102. sameDay: '[danas u] LT',
  103. nextDay: '[sutra u] LT',
  104. nextWeek: function () {
  105. switch (this.day()) {
  106. case 0:
  107. return '[u] [nedjelju] [u] LT';
  108. case 3:
  109. return '[u] [srijedu] [u] LT';
  110. case 6:
  111. return '[u] [subotu] [u] LT';
  112. case 1:
  113. case 2:
  114. case 4:
  115. case 5:
  116. return '[u] dddd [u] LT';
  117. }
  118. },
  119. lastDay: '[jučer u] LT',
  120. lastWeek: function () {
  121. switch (this.day()) {
  122. case 0:
  123. return '[prošlu] [nedjelju] [u] LT';
  124. case 3:
  125. return '[prošlu] [srijedu] [u] LT';
  126. case 6:
  127. return '[prošle] [subote] [u] LT';
  128. case 1:
  129. case 2:
  130. case 4:
  131. case 5:
  132. return '[prošli] dddd [u] LT';
  133. }
  134. },
  135. sameElse: 'L',
  136. },
  137. relativeTime: {
  138. future: 'za %s',
  139. past: 'prije %s',
  140. s: 'par sekundi',
  141. ss: translate,
  142. m: translate,
  143. mm: translate,
  144. h: translate,
  145. hh: translate,
  146. d: 'dan',
  147. dd: translate,
  148. M: 'mjesec',
  149. MM: translate,
  150. y: 'godinu',
  151. yy: translate,
  152. },
  153. dayOfMonthOrdinalParse: /\d{1,2}\./,
  154. ordinal: '%d.',
  155. week: {
  156. dow: 1, // Monday is the first day of the week.
  157. doy: 7, // The week that contains Jan 7th is the first week of the year.
  158. },
  159. });
  160. return hr;
  161. })));