33 lines
886 B
JavaScript
33 lines
886 B
JavaScript
// numeral.js locale configuration
|
|
// locale : Hungarian (hu)
|
|
// author : Peter Bakondy : https://github.com/pbakondy
|
|
|
|
(function (global, factory) {
|
|
if (typeof define === 'function' && define.amd) {
|
|
define(['../numeral'], factory);
|
|
} else if (typeof module === 'object' && module.exports) {
|
|
factory(require('../numeral'));
|
|
} else {
|
|
factory(global.numeral);
|
|
}
|
|
}(this, function (numeral) {
|
|
numeral.register('locale', 'hu', {
|
|
delimiters: {
|
|
thousands: ' ',
|
|
decimal: ','
|
|
},
|
|
abbreviations: {
|
|
thousand: 'E', // ezer
|
|
million: 'M', // millió
|
|
billion: 'Mrd', // milliárd
|
|
trillion: 'T' // trillió
|
|
},
|
|
ordinal: function (number) {
|
|
return '.';
|
|
},
|
|
currency: {
|
|
symbol: ' Ft'
|
|
}
|
|
});
|
|
}));
|