説明なし

it.js 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. ss : '%d secondi',
  42. m : 'un minuto',
  43. mm : '%d minuti',
  44. h : 'un\'ora',
  45. hh : '%d ore',
  46. d : 'un giorno',
  47. dd : '%d giorni',
  48. M : 'un mese',
  49. MM : '%d mesi',
  50. y : 'un anno',
  51. yy : '%d anni'
  52. },
  53. dayOfMonthOrdinalParse : /\d{1,2}º/,
  54. ordinal: '%dº',
  55. week : {
  56. dow : 1, // Monday is the first day of the week.
  57. doy : 4 // The week that contains Jan 4th is the first week of the year.
  58. }
  59. });