Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

Makes names of days in datepicker location aware #177

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Makes names of days in datepicker location aware #177

wants to merge 2 commits into from

Conversation

mathio
Copy link

@mathio mathio commented May 11, 2016

Currently the names of days (above the date picker) are hard coded strings starting with "Su" (for Sunday). However this is not always correct, since start of the week is calculated based on moment and its locale.

Example:

When I change moment locale to for example Slovak:

import moment from 'moment';
import 'moment/locale/sk';

The week is supposed to start with Monday instead of Sunday. Weeks are correctly started with Monday, however day names at top (Su, Mo, Tu ...) are:

  1. not translated
  2. still start with Sunday

This pull request fixed both issues - it translates day names based on moment locale and also starts with correct day name.

Screenshot:
screen shot 2016-05-11 at 14 39 02

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant