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.

oc-lnc.js 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. //! moment.js locale configuration
  2. //! locale : Occitan, lengadocian dialecte [oc-lnc]
  3. //! author : Quentin PAGÈS : https://github.com/Quenty31
  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 ocLnc = moment.defineLocale('oc-lnc', {
  12. months: {
  13. standalone:
  14. 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
  15. '_'
  16. ),
  17. format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split(
  18. '_'
  19. ),
  20. isFormat: /D[oD]?(\s)+MMMM/,
  21. },
  22. monthsShort:
  23. 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
  24. '_'
  25. ),
  26. monthsParseExact: true,
  27. weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
  28. '_'
  29. ),
  30. weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
  31. weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
  32. weekdaysParseExact: true,
  33. longDateFormat: {
  34. LT: 'H:mm',
  35. LTS: 'H:mm:ss',
  36. L: 'DD/MM/YYYY',
  37. LL: 'D MMMM [de] YYYY',
  38. ll: 'D MMM YYYY',
  39. LLL: 'D MMMM [de] YYYY [a] H:mm',
  40. lll: 'D MMM YYYY, H:mm',
  41. LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
  42. llll: 'ddd D MMM YYYY, H:mm',
  43. },
  44. calendar: {
  45. sameDay: '[uèi a] LT',
  46. nextDay: '[deman a] LT',
  47. nextWeek: 'dddd [a] LT',
  48. lastDay: '[ièr a] LT',
  49. lastWeek: 'dddd [passat a] LT',
  50. sameElse: 'L',
  51. },
  52. relativeTime: {
  53. future: "d'aquí %s",
  54. past: 'fa %s',
  55. s: 'unas segondas',
  56. ss: '%d segondas',
  57. m: 'una minuta',
  58. mm: '%d minutas',
  59. h: 'una ora',
  60. hh: '%d oras',
  61. d: 'un jorn',
  62. dd: '%d jorns',
  63. M: 'un mes',
  64. MM: '%d meses',
  65. y: 'un an',
  66. yy: '%d ans',
  67. },
  68. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  69. ordinal: function (number, period) {
  70. var output =
  71. number === 1
  72. ? 'r'
  73. : number === 2
  74. ? 'n'
  75. : number === 3
  76. ? 'r'
  77. : number === 4
  78. ? 't'
  79. : 'è';
  80. if (period === 'w' || period === 'W') {
  81. output = 'a';
  82. }
  83. return number + output;
  84. },
  85. week: {
  86. dow: 1, // Monday is the first day of the week.
  87. doy: 4,
  88. },
  89. });
  90. return ocLnc;
  91. })));