33 lines
864 B
JavaScript
33 lines
864 B
JavaScript
|
// numeral.js locale configuration
|
||
|
// locale : portuguese brazil (pt-br)
|
||
|
// author : Ramiro Varandas Jr : https://github.com/ramirovjr
|
||
|
|
||
|
(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', 'pt-br', {
|
||
|
delimiters: {
|
||
|
thousands: '.',
|
||
|
decimal: ','
|
||
|
},
|
||
|
abbreviations: {
|
||
|
thousand: 'mil',
|
||
|
million: 'milhões',
|
||
|
billion: 'b',
|
||
|
trillion: 't'
|
||
|
},
|
||
|
ordinal: function (number) {
|
||
|
return 'º';
|
||
|
},
|
||
|
currency: {
|
||
|
symbol: 'R$'
|
||
|
}
|
||
|
});
|
||
|
}));
|