36 lines
1.0 KiB
JavaScript
36 lines
1.0 KiB
JavaScript
// numeral.js locale configuration
|
|
// locale : dutch-belgium (nl-be)
|
|
// author : Dieter Luypaert : https://github.com/moeriki
|
|
// corrected : Olivier Godefroy : https://github.com/godefroyo
|
|
|
|
(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', 'nl-be', {
|
|
delimiters: {
|
|
thousands: ' ',
|
|
decimal : ','
|
|
},
|
|
abbreviations: {
|
|
thousand : 'k',
|
|
million : ' mln',
|
|
billion : ' mld',
|
|
trillion : ' bln'
|
|
},
|
|
ordinal : function (number) {
|
|
var remainder = number % 100;
|
|
|
|
return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? 'ste' : 'de';
|
|
},
|
|
currency: {
|
|
symbol: '€ '
|
|
}
|
|
});
|
|
}));
|