it.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // moment.js language configuration
  2. // language : italian (it)
  3. // author : Lorenzo : https://github.com/aliem
  4. // author: Mattia Larentis: https://github.com/nostalgiaz
  5. (function (factory) {
  6. if (typeof define === 'function' && define.amd) {
  7. define(['moment'], factory); // AMD
  8. } else if (typeof exports === 'object') {
  9. module.exports = factory(require('../moment')); // Node
  10. } else {
  11. factory(window.moment); // Browser global
  12. }
  13. }(function (moment) {
  14. return moment.lang('it', {
  15. months : "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),
  16. monthsShort : "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),
  17. weekdays : "Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),
  18. weekdaysShort : "Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),
  19. weekdaysMin : "D_L_Ma_Me_G_V_S".split("_"),
  20. longDateFormat : {
  21. LT : "HH:mm",
  22. L : "DD/MM/YYYY",
  23. LL : "D MMMM YYYY",
  24. LLL : "D MMMM YYYY LT",
  25. LLLL : "dddd, D MMMM YYYY LT"
  26. },
  27. calendar : {
  28. sameDay: '[Oggi alle] LT',
  29. nextDay: '[Domani alle] LT',
  30. nextWeek: 'dddd [alle] LT',
  31. lastDay: '[Ieri alle] LT',
  32. lastWeek: '[lo scorso] dddd [alle] LT',
  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. ordinal: '%dº',
  53. week : {
  54. dow : 1, // Monday is the first day of the week.
  55. doy : 4 // The week that contains Jan 4th is the first week of the year.
  56. }
  57. });
  58. }));