numbro
Version:
Format and manipulate numbers.
60 lines (58 loc) • 1.39 kB
JavaScript
/*!
* numbro.js language configuration
* language : Slovak
* locale : Slovakia
* author : Jan Pesa : https://github.com/smajl (based on work from Ahmed Al Hafoudh : http://www.freevision.sk)
*/
module.exports = {
languageTag: "sk-SK",
delimiters: {
thousands: "\u00a0",
decimal: ","
},
abbreviations: {
thousand: "tis.",
million: "mil.",
billion: "mld.",
trillion: "bil."
},
ordinal: function() {
return ".";
},
spaceSeparated: true,
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
}
}
};