showcase
Version:
Infrustucture for activecell's front-end libraries
32 lines (31 loc) • 806 B
JavaScript
// numeral.js language configuration
// language : danish denmark (dk)
// author : Michael Storgaard : https://github.com/mstorgaard
(function () {
var language = {
delimiters: {
thousands: '.',
decimal: ','
},
abbreviations: {
thousand: 'k',
million: 'mio',
billion: 'mia',
trillion: 'b'
},
ordinal: function (number) {
return '.';
},
currency: {
symbol: 'DKK'
}
};
// Node
if (typeof module !== 'undefined' && module.exports) {
module.exports = language;
}
// Browser
if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
this.numeral.language('da-dk', language);
}
}());