Skip to content

Instantly share code, notes, and snippets.

@icetee
Last active August 29, 2015 14:12
Show Gist options
  • Save icetee/f629a7bbbd867401c2de to your computer and use it in GitHub Desktop.
Save icetee/f629a7bbbd867401c2de to your computer and use it in GitHub Desktop.
Numeral Hungarian language
/*!
* numeral.js language configuration
* language : Hungarian (hu)
* source : Peter Bakondy : https://github.com/pbakondy
* author : Horváth Tamás András
*/
(function () {
var language = {
delimiters: {
thousands: '.',
decimal: ','
},
abbreviations: {
thousand: 'E', // ezer
million: 'M', // millió
billion: 'Mrd', // milliárd
trillion: 'T' // trillió
},
ordinal: function (number) {
return '.';
},
currency: {
symbol: ' Ft'
}
};
// Node
if (typeof module !== 'undefined' && module.exports) {
module.exports = language;
}
// Browser
if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
this.numeral.language('hu', language);
}
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment