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
Month Abbreviations improvement #914
Comments
Of course. Just check |
Do you mean you will add it sometime? |
@eslepova we support this |
Yes, but it allows us to add only one monthsShort setting, but moment has 2 settings for monthsShort - format and standalone. dayjs('2020-05-25').format('MMM') should return 'май' |
You can check here as a reference. https://github.com/iamkun/dayjs/blob/dev/src/locale/ru.js#L39
|
Besides, tested dayjs gives the correct result as you mentioned above. |
So ru.js already has everything inside it, and I don't have to add 'monthsShort' manually, which it is used to be in the project. Now I understand, thanks a lot! It would be nice if you put in doc https://day.js.org/docs/en/customization/customization example that monthsShort can be a function. Thanks a lot again! |
doc updated thanks. |
Hi,
We moved from moment to dayjs a few months ago. And everything is perfect except for one thing: declension of months.
In moment we have:
moment.updateLocale('en', { monthsShort : { format: 'янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек'.split('_'), standalone: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_') } });
(https://momentjs.com/docs/#/customization/month-abbreviations/)Do you have plans to add it?
The text was updated successfully, but these errors were encountered: