numbro
Version:
Format and manipulate numbers.
59 lines (57 loc) • 1.34 kB
JavaScript
/*!
* numbro.js language configuration
* language : Hungarian
* locale: Hungary
* author : Peter Bakondy : https://github.com/pbakondy
*/
module.exports = {
languageTag: "hu-HU",
delimiters: {
thousands: " ",
decimal: ","
},
abbreviations: {
thousand: "E", // ezer
million: "M", // millió
billion: "Mrd", // milliárd
trillion: "T" // trillió
},
ordinal: function() {
return ".";
},
currency: {
symbol: "Ft",
position: "postfix",
code: "HUF"
},
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
}
}
};