You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
2.4 KiB

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