@quantlab/handsontable
Version:
Spreadsheet-like data grid editor that provides copy/paste functionality compatible with Excel/Google Docs
50 lines (47 loc) • 1.32 kB
JavaScript
/*!
* numbro.js language configuration
* language : Portuguese
* locale : Brazil
* author : Ramiro Varandas Jr : https://github.com/ramirovjr
*/
(function () {
'use strict';
var language = {
langLocaleCode: 'pt-BR',
cultureCode: 'pt-BR',
delimiters: {
thousands: '.',
decimal: ','
},
abbreviations: {
thousand: 'mil',
million: 'milhões',
billion: 'b',
trillion: 't'
},
ordinal: function () {
return 'º';
},
currency: {
symbol: 'R$',
position: 'prefix'
},
defaults: {
currencyFormat: ',4 a'
},
formats: {
fourDigits: '4 a',
fullWithTwoDecimals: ',0.00 $',
fullWithTwoDecimalsNoCurrency: ',0.00',
fullWithNoDecimals: ',0 $'
}
};
// CommonJS
if (typeof module !== 'undefined' && module.exports) {
module.exports = language;
}
// Browser
if (typeof window !== 'undefined' && window.numbro && window.numbro.culture) {
window.numbro.culture(language.cultureCode, language);
}
}.call(typeof window === 'undefined' ? this : window));