it.js 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. ;(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. var it = moment.defineLocale('it', {
  12. months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  13. monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  14. weekdays : 'Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato'.split('_'),
  15. weekdaysShort : 'Dom_Lun_Mar_Mer_Gio_Ven_Sab'.split('_'),
  16. weekdaysMin : 'Do_Lu_Ma_Me_Gi_Ve_Sa'.split('_'),
  17. longDateFormat : {
  18. LT : 'HH:mm',
  19. LTS : 'HH:mm:ss',
  20. L : 'DD/MM/YYYY',
  21. LL : 'D MMMM YYYY',
  22. LLL : 'D MMMM YYYY HH:mm',
  23. LLLL : 'dddd, D MMMM YYYY HH:mm'
  24. },
  25. calendar : {
  26. sameDay: '[Oggi alle] LT',
  27. nextDay: '[Domani alle] LT',
  28. nextWeek: 'dddd [alle] LT',
  29. lastDay: '[Ieri alle] LT',
  30. lastWeek: function () {
  31. switch (this.day()) {
  32. case 0:
  33. return '[la scorsa] dddd [alle] LT';
  34. default:
  35. return '[lo scorso] dddd [alle] LT';
  36. }
  37. },
  38. sameElse: 'L'
  39. },
  40. relativeTime : {
  41. future : function (s) {
  42. return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
  43. },
  44. past : '%s fa',
  45. s : 'alcuni secondi',
  46. m : 'un minuto',
  47. mm : '%d minuti',
  48. h : 'un\'ora',
  49. hh : '%d ore',
  50. d : 'un giorno',
  51. dd : '%d giorni',
  52. M : 'un mese',
  53. MM : '%d mesi',
  54. y : 'un anno',
  55. yy : '%d anni'
  56. },
  57. ordinalParse : /\d{1,2}º/,
  58. ordinal: '%dº',
  59. week : {
  60. dow : 1, // Monday is the first day of the week.
  61. doy : 4 // The week that contains Jan 4th is the first week of the year.
  62. }
  63. });
  64. return it;
  65. }));