numbro
Version:
Format and manipulate numbers.
37 lines (32 loc) • 869 B
JavaScript
function getDefaultExportFromCjs (x) {
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
}
/*!
* numbro.js language configuration
* language : Filipino (Pilipino)
* locale: Philippines
* author : Michael Abadilla : https://github.com/mjmaix
*/
var filPH = {
languageTag: "fil-PH",
delimiters: {
thousands: ",",
decimal: "."
},
abbreviations: {
thousand: "k",
million: "m",
billion: "b",
trillion: "t"
},
ordinal: (number) => {
let b = number % 10;
return (~~(number % 100 / 10) === 1) ? "th" : (b === 1) ? "st" : (b === 2) ? "nd" : (b === 3) ? "rd" : "th";
},
currency: {
symbol: "₱",
code: "PHP"
}
};
var filPH$1 = /*@__PURE__*/getDefaultExportFromCjs(filPH);
export { filPH$1 as default };