Node-Red configuration
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

jv.js 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. //! moment.js locale configuration
  2. //! locale : Javanese [jv]
  3. //! author : Rony Lantip : https://github.com/lantip
  4. //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
  5. ;(function (global, factory) {
  6. typeof exports === 'object' && typeof module !== 'undefined'
  7. && typeof require === 'function' ? factory(require('../moment')) :
  8. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  9. factory(global.moment)
  10. }(this, (function (moment) { 'use strict';
  11. //! moment.js locale configuration
  12. var jv = moment.defineLocale('jv', {
  13. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
  14. '_'
  15. ),
  16. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  17. weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  18. weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  19. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  20. longDateFormat: {
  21. LT: 'HH.mm',
  22. LTS: 'HH.mm.ss',
  23. L: 'DD/MM/YYYY',
  24. LL: 'D MMMM YYYY',
  25. LLL: 'D MMMM YYYY [pukul] HH.mm',
  26. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  27. },
  28. meridiemParse: /enjing|siyang|sonten|ndalu/,
  29. meridiemHour: function (hour, meridiem) {
  30. if (hour === 12) {
  31. hour = 0;
  32. }
  33. if (meridiem === 'enjing') {
  34. return hour;
  35. } else if (meridiem === 'siyang') {
  36. return hour >= 11 ? hour : hour + 12;
  37. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  38. return hour + 12;
  39. }
  40. },
  41. meridiem: function (hours, minutes, isLower) {
  42. if (hours < 11) {
  43. return 'enjing';
  44. } else if (hours < 15) {
  45. return 'siyang';
  46. } else if (hours < 19) {
  47. return 'sonten';
  48. } else {
  49. return 'ndalu';
  50. }
  51. },
  52. calendar: {
  53. sameDay: '[Dinten puniko pukul] LT',
  54. nextDay: '[Mbenjang pukul] LT',
  55. nextWeek: 'dddd [pukul] LT',
  56. lastDay: '[Kala wingi pukul] LT',
  57. lastWeek: 'dddd [kepengker pukul] LT',
  58. sameElse: 'L',
  59. },
  60. relativeTime: {
  61. future: 'wonten ing %s',
  62. past: '%s ingkang kepengker',
  63. s: 'sawetawis detik',
  64. ss: '%d detik',
  65. m: 'setunggal menit',
  66. mm: '%d menit',
  67. h: 'setunggal jam',
  68. hh: '%d jam',
  69. d: 'sedinten',
  70. dd: '%d dinten',
  71. M: 'sewulan',
  72. MM: '%d wulan',
  73. y: 'setaun',
  74. yy: '%d taun',
  75. },
  76. week: {
  77. dow: 1, // Monday is the first day of the week.
  78. doy: 7, // The week that contains Jan 7th is the first week of the year.
  79. },
  80. });
  81. return jv;
  82. })));