showcase
Version:
Infrustucture for activecell's front-end libraries
32 lines (31 loc) • 809 B
JavaScript
// numeral.js language configuration
// language : french (fr)
// author : Adam Draper : https://github.com/adamwdraper
(function () {
var language = {
delimiters: {
thousands: ' ',
decimal: ','
},
abbreviations: {
thousand: 'k',
million: 'm',
billion: 'b',
trillion: 't'
},
ordinal : function (number) {
return number === 1 ? 'er' : 'e';
},
currency: {
symbol: '€'
}
};
// Node
if (typeof module !== 'undefined' && module.exports) {
module.exports = language;
}
// Browser
if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
this.numeral.language('fr', language);
}
}());