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
locale is not loaded automatically with browserify #2007
Comments
I agree, we should say it in the docs. |
And it's still not in the docs after 6 months. @janmarek you don't need to call the locale after the require var moment = require('moment');
require('moment/locale/cs');
console.log(moment.locale()); // cs But this behaviour and the common js requiring in moment is totally horrible. |
It works thanks, even if is not pretty. It should be in the docs. |
Please send a PR to https://github.com/moment/momentjs.com. Thanks. |
This is long overdue. It might not be the pretties solution, but it's the best one. |
Merged the PR in the docs repo. Thanks, and sorry for the delay. |
|
Was able to fix with this one #3624 (comment) |
Solution for me was removing the following lines:
|
With browserify (http://browserify.org/) setting locale does not work.
I have found this workaround:
It is probably not easily fixable, but at least it can be mentioned in docs.
The text was updated successfully, but these errors were encountered: