33 lines
840 B
JavaScript
33 lines
840 B
JavaScript
// numeral.js locale configuration
|
|
// locale : italian Italy (it)
|
|
// author : Giacomo Trombi : http://cinquepunti.it
|
|
|
|
(function (global, factory) {
|
|
if (typeof define === 'function' && define.amd) {
|
|
define(['../numeral'], factory);
|
|
} else if (typeof module === 'object' && module.exports) {
|
|
factory(require('../numeral'));
|
|
} else {
|
|
factory(global.numeral);
|
|
}
|
|
}(this, function (numeral) {
|
|
numeral.register('locale', 'it', {
|
|
delimiters: {
|
|
thousands: '.',
|
|
decimal: ','
|
|
},
|
|
abbreviations: {
|
|
thousand: 'mila',
|
|
million: 'mil',
|
|
billion: 'b',
|
|
trillion: 't'
|
|
},
|
|
ordinal: function (number) {
|
|
return 'º';
|
|
},
|
|
currency: {
|
|
symbol: '€'
|
|
}
|
|
});
|
|
}));
|