We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
moment.lang
As of moment@2.8.1 moment.lang is deprecated and was replaced by moment.locale. http://momentjs.com/docs/#/i18n/changing-locale/
moment.locale
As one may provide their own instance of moment this may cause issues.
There are two possible ways to fix this:
var locale = typeof moment.locale === 'function' ? 'locale' : 'lang' // … moment[locale]('en')
Changing ~2.0.0 to ^2.0.0 would still be recommended though.
What do you think? Not so sure, but I think I prefer 2.
The text was updated successfully, but these errors were encountered:
I also prefer version 2 and yes let's change the version to ^2.0.0.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
As of moment@2.8.1
moment.lang
is deprecated and was replaced bymoment.locale
. http://momentjs.com/docs/#/i18n/changing-locale/As one may provide their own instance of moment this may cause issues.
There are two possible ways to fix this:
moment.locale
Changing ~2.0.0 to ^2.0.0 would still be recommended though.
What do you think? Not so sure, but I think I prefer 2.
The text was updated successfully, but these errors were encountered: