Skip to content

[feature] Add localeSort param to Locale weekday methods - #4553

Merged
marwahaha merged 2 commits into
developfrom
km/locale-sort-weekdays
Jan 21, 2019
Merged

marwahaha merged 2 commits into
developfrom
km/locale-sort-weekdays

Conversation

@marwahaha

Copy link
Copy Markdown
Member

fixes #4066

This adds Locale#weekdays(true) to sort weekdays by locale (as moment.weekdays(true) does if it is the current locale). Same for #weekdaysShort, #weekdaysMin.

I added some tests for all locales, and a concrete one for en-au.
Example:

moment.localeData('en-gb').weekdays(true) 

@coveralls

coveralls commented Apr 13, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.03%) to 94.65% when pulling aaf2381 on km/locale-sort-weekdays into 10013b1 on develop.

@marwahaha
marwahaha requested a review from icambron April 16, 2018 00:08
Comment thread src/locale/uk.js
if (m === true) {
return weekdays['nominative'].slice(1, 7).concat(weekdays['nominative'].slice(0, 1));
}
if (!m) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

else

@marwahaha
marwahaha merged commit 3b80f6a into develop Jan 21, 2019
@marwahaha
marwahaha deleted the km/locale-sort-weekdays branch January 21, 2019 05:48
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

Successfully merging this pull request may close these issues.

Week Days locale problems

3 participants