Created
December 20, 2019 15:16
-
-
Save CodeCurosity/971be8d49343111fec88e3f73d58360b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// load a language | |
numeral.language('fr', { | |
delimiters: { | |
thousands: ' ', | |
decimal: ',' | |
}, | |
abbreviations: { | |
thousand: 'k', | |
million: 'm', | |
billion: 'b', | |
trillion: 't' | |
}, | |
ordinal : function (number) { | |
return number === 1 ? 'er' : 'ème'; | |
}, | |
currency: { | |
symbol: '€' | |
} | |
}); | |
// switch between languages | |
numeral.language('fr'); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment