numbro
Version:
Format and manipulate numbers.
62 lines (60 loc) • 1.39 kB
JavaScript
/*!
* numbro.js language configuration
* language : Estonian
* locale: Estonia
* author : Illimar Tambek : https://github.com/ragulka
*
* Note: in Estonian, abbreviations are always separated
* from numbers with a space
*/
module.exports = {
languageTag: "et-EE",
delimiters: {
thousands: " ",
decimal: ","
},
abbreviations: {
thousand: "tuh",
million: "mln",
billion: "mld",
trillion: "trl"
},
ordinal: function() {
return ".";
},
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
}
}
};