numbro
Version:
Format and manipulate numbers.
68 lines (63 loc) • 1.66 kB
JavaScript
function getDefaultExportFromCjs (x) {
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
}
/*!
* numbro.js language configuration
* language : Spanish
* locale: Spain
* author : Hernan Garcia : https://github.com/hgarcia
*/
var esES = {
languageTag: "es-ES",
delimiters: {
thousands: ".",
decimal: ","
},
abbreviations: {
thousand: "k",
million: "mm",
billion: "b",
trillion: "t"
},
ordinal: (number) => {
let b = number % 10;
return (b === 1 || b === 3) ? "er" : (b === 2) ? "do" : (b === 7 || b === 0) ? "mo" : (b === 8) ? "vo" : (b === 9) ? "no" : "to";
},
currency: {
symbol: "€",
position: "postfix",
code: "EUR"
},
currencyFormat: {
thousandSeparated: true,
totalLength: 4,
spaceSeparated: true,
spaceSeparatedCurrency: true,
average: true
},
formats: {
fourDigits: {
totalLength: 4,
spaceSeparated: true,
average: true
},
fullWithTwoDecimals: {
output: "currency",
mantissa: 2,
spaceSeparated: true,
thousandSeparated: true
},
fullWithTwoDecimalsNoCurrency: {
mantissa: 2,
thousandSeparated: true
},
fullWithNoDecimals: {
output: "currency",
spaceSeparated: true,
thousandSeparated: true,
mantissa: 0
}
}
};
var esES$1 = /*@__PURE__*/getDefaultExportFromCjs(esES);
export { esES$1 as default };