UNPKG

numbro

Version:

Format and manipulate numbers.

56 lines (54 loc) 1.21 kB
/*! * numbro.js language configuration * language : French * locale: Canada * author : Léo Renaud-Allaire : https://github.com/renaudleo */ module.exports = { languageTag: "fr-CA", delimiters: { thousands: " ", decimal: "," }, abbreviations: { thousand: "k", million: "M", billion: "G", trillion: "T" }, ordinal: (number) => { return number === 1 ? "er" : "ème"; }, spaceSeparated: true, currency: { symbol: "$", position: "postfix", code: "USD" }, currencyFormat: { thousandSeparated: true, totalLength: 4, spaceSeparated: true, average: true }, formats: { fourDigits: { totalLength: 4, spaceSeparated: true, average: true }, fullWithTwoDecimals: { thousandSeparated: true, mantissa: 2 }, fullWithTwoDecimalsNoCurrency: { mantissa: 2, thousandSeparated: true }, fullWithNoDecimals: { output: "currency", thousandSeparated: true, mantissa: 0 } } };