-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Deprecate langData objects on the moment namespace. #334
Comments
For future reference, see the discussion in #332. |
TODO reminder: We will need to undo c018776 when we drop the accessors from the global object. |
also |
This has been deprecated in the develop branch, so I'm closing this issue. |
In the previous version I was able to do the following to get an array with all of the months:
but now it looks like monthsShort is a function which takes in a moment obj. Is it still possible somehow to get the list of months as an array? |
You can use moment.langData().monthsShort(moment([0, monthIndex]), ""); |
All of these are going away in 2.0.0.
They are going to be replaced by
moment.langData().calendar
ormoment.langData('en').calendar
.The text was updated successfully, but these errors were encountered: