Include
To benefit from multiple languages support, you only need to include the languages.js
file. As for the main file, it comes with many flavors.
cdnjs
<script src="//cdnjs.cloudflare.com/ajax/libs/numbro//min/languages.min.js"></script>
Bower
Node.js
GitHub
Supported languages
The supported languages are registered following the IETF's BCP 47.
Define a new language
You can easily define your own language if you can't find what you want in the list of supported languages.
If you lack a language, please help us to improve numbro by submitting a
pull request.
Change language
To change the language to use, you only need to use the setLanguage
function with the language tag of the language needed.