Ohm-Management - Projektarbeit B-ME
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.

it-ch.js 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //! moment.js locale configuration
  2. //! locale : Italian (Switzerland) [it-ch]
  3. //! author : xfh : https://github.com/xfh
  4. import moment from '../moment';
  5. export default moment.defineLocale('it-ch', {
  6. months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  7. monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  8. weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
  9. weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  10. weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'),
  11. longDateFormat : {
  12. LT : 'HH:mm',
  13. LTS : 'HH:mm:ss',
  14. L : 'DD.MM.YYYY',
  15. LL : 'D MMMM YYYY',
  16. LLL : 'D MMMM YYYY HH:mm',
  17. LLLL : 'dddd D MMMM YYYY HH:mm'
  18. },
  19. calendar : {
  20. sameDay: '[Oggi alle] LT',
  21. nextDay: '[Domani alle] LT',
  22. nextWeek: 'dddd [alle] LT',
  23. lastDay: '[Ieri alle] LT',
  24. lastWeek: function () {
  25. switch (this.day()) {
  26. case 0:
  27. return '[la scorsa] dddd [alle] LT';
  28. default:
  29. return '[lo scorso] dddd [alle] LT';
  30. }
  31. },
  32. sameElse: 'L'
  33. },
  34. relativeTime : {
  35. future : function (s) {
  36. return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
  37. },
  38. past : '%s fa',
  39. s : 'alcuni secondi',
  40. ss : '%d 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. dayOfMonthOrdinalParse : /\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. });