Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using languages in node #62

Closed
stewart42 opened this issue Jun 17, 2015 · 3 comments
Closed

using languages in node #62

stewart42 opened this issue Jun 17, 2015 · 3 comments

Comments

@stewart42
Copy link
Contributor

Hi there,

I think I am missing something :/

in node, load an additional language

var numbro = require('numbro');
numbro.language('en-ZA', require('../node_modules/numbro/dist/languages/en-ZA.min.js'));
numbro.language('en-ZA');

Would I need to do this for all the languages I would like available to the app?

@BenjaminVanRyseghem
Copy link
Owner

According to the current code, I would say yes.

But it sucks badly 😄 I will try to have a look to improve that (or if you want to propose a PR, feel free 😛 )

@BenjaminVanRyseghem
Copy link
Owner

In numbro 1.4.0

@stewart42
Copy link
Contributor Author

Thanks guys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants