e7e8c1855c513d8d12f34b0b255c30f57fbaaefaa70c209a43a42a265c828a6c5d26ca33d308571a67d426c51782aceafb6d0e94d6c727eb98548092afe27b 1.9 KB

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