Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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$'
- }
- });
- }));
- abbreviations: {
- thousand: 'mil',
- million: 'mi',
- billion: 'bi',
- trillion: 'tri'
- },
Add Comment
Please, Sign In to add comment