Node-Red configuration
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

it.js 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. //! moment.js locale configuration
  2. //! locale : Italian [it]
  3. //! author : Lorenzo : https://github.com/aliem
  4. //! author: Mattia Larentis: https://github.com/nostalgiaz
  5. //! author: Marco : https://github.com/Manfre98
  6. ;(function (global, factory) {
  7. typeof exports === 'object' && typeof module !== 'undefined'
  8. && typeof require === 'function' ? factory(require('../moment')) :
  9. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  10. factory(global.moment)
  11. }(this, (function (moment) { 'use strict';
  12. //! moment.js locale configuration
  13. var it = moment.defineLocale('it', {
  14. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
  15. '_'
  16. ),
  17. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  18. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
  19. '_'
  20. ),
  21. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  22. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  23. longDateFormat: {
  24. LT: 'HH:mm',
  25. LTS: 'HH:mm:ss',
  26. L: 'DD/MM/YYYY',
  27. LL: 'D MMMM YYYY',
  28. LLL: 'D MMMM YYYY HH:mm',
  29. LLLL: 'dddd D MMMM YYYY HH:mm',
  30. },
  31. calendar: {
  32. sameDay: function () {
  33. return (
  34. '[Oggi a' +
  35. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  36. ']LT'
  37. );
  38. },
  39. nextDay: function () {
  40. return (
  41. '[Domani a' +
  42. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  43. ']LT'
  44. );
  45. },
  46. nextWeek: function () {
  47. return (
  48. 'dddd [a' +
  49. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  50. ']LT'
  51. );
  52. },
  53. lastDay: function () {
  54. return (
  55. '[Ieri a' +
  56. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  57. ']LT'
  58. );
  59. },
  60. lastWeek: function () {
  61. switch (this.day()) {
  62. case 0:
  63. return (
  64. '[La scorsa] dddd [a' +
  65. (this.hours() > 1
  66. ? 'lle '
  67. : this.hours() === 0
  68. ? ' '
  69. : "ll'") +
  70. ']LT'
  71. );
  72. default:
  73. return (
  74. '[Lo scorso] dddd [a' +
  75. (this.hours() > 1
  76. ? 'lle '
  77. : this.hours() === 0
  78. ? ' '
  79. : "ll'") +
  80. ']LT'
  81. );
  82. }
  83. },
  84. sameElse: 'L',
  85. },
  86. relativeTime: {
  87. future: 'tra %s',
  88. past: '%s fa',
  89. s: 'alcuni secondi',
  90. ss: '%d secondi',
  91. m: 'un minuto',
  92. mm: '%d minuti',
  93. h: "un'ora",
  94. hh: '%d ore',
  95. d: 'un giorno',
  96. dd: '%d giorni',
  97. w: 'una settimana',
  98. ww: '%d settimane',
  99. M: 'un mese',
  100. MM: '%d mesi',
  101. y: 'un anno',
  102. yy: '%d anni',
  103. },
  104. dayOfMonthOrdinalParse: /\d{1,2}º/,
  105. ordinal: '%dº',
  106. week: {
  107. dow: 1, // Monday is the first day of the week.
  108. doy: 4, // The week that contains Jan 4th is the first week of the year.
  109. },
  110. });
  111. return it;
  112. })));