UNPKG

numbro

Version:

Format and manipulate numbers.

59 lines (57 loc) 1.38 kB
/*! * numbro.js language configuration * language : Dutch * locale: Belgium * author : Dieter Luypaert : https://github.com/moeriki */ module.exports = { languageTag: "nl-BE", delimiters: { thousands: " ", decimal: "," }, abbreviations: { thousand: "k", million: "mln", billion: "mld", trillion: "bln" }, ordinal: number => { let remainder = number % 100; return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? "ste" : "de"; }, currency: { symbol: "€", position: "postfix", code: "EUR" }, currencyFormat: { thousandSeparated: true, totalLength: 4, spaceSeparated: 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 } } };