32 lines
1.3 KiB
JavaScript
32 lines
1.3 KiB
JavaScript
(function (global, factory) {
|
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, (global.date = global.date || {}, global.date.locale = global.date.locale || {}, global.date.locale.it = factory()));
|
|
})(this, (function () { 'use strict';
|
|
|
|
/**
|
|
* @preserve date-and-time.js locale configuration
|
|
* @preserve Italian (it)
|
|
* @preserve It is using moment.js locale configuration as a reference.
|
|
*/
|
|
|
|
var it = function (date) {
|
|
var code = 'it';
|
|
|
|
date.locale(code, {
|
|
res: {
|
|
MMMM: ['gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre'],
|
|
MMM: ['gen', 'feb', 'mar', 'apr', 'mag', 'giu', 'lug', 'ago', 'set', 'ott', 'nov', 'dic'],
|
|
dddd: ['Domenica', 'Lunedì', 'Martedì', 'Mercoledì', 'Giovedì', 'Venerdì', 'Sabato'],
|
|
ddd: ['Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'],
|
|
dd: ['Do', 'Lu', 'Ma', 'Me', 'Gi', 'Ve', 'Sa'],
|
|
A: ['di mattina', 'di pomerrigio']
|
|
}
|
|
});
|
|
return code;
|
|
};
|
|
|
|
return it;
|
|
|
|
}));
|