Skip to content

Instantly share code, notes, and snippets.

@icetee
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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