Skip to content
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

Locale change does not seem to work #63

Open
alessiostalla opened this issue Jan 4, 2019 · 0 comments
Open

Locale change does not seem to work #63

alessiostalla opened this issue Jan 4, 2019 · 0 comments

Comments

@alessiostalla
Copy link

alessiostalla commented Jan 4, 2019

//class MyService
constructor(protected dateAdapter: DateAdapter<any>, protected datetimeAdapter: DatetimeAdapter<any>) {}

setLocale(locale) {
    this.dateAdapter.setLocale(locale);
    this.datetimeAdapter.setLocale(locale);
}

//later
myService.setLocale("it");
//later still
myService.setLocale("en");

Observed effect: regular Material date picker switches from DD/MM to MM/DD. Date-time picker doesn't. However, in the popup the names of months and days do change.

alessiostalla added a commit to ManyDesigns/Portofino that referenced this issue Jan 4, 2019
…ming (see kuhnroyal/mat-datetimepicker#9), so switched date-time picker on. However locale change does not appear to work. Opened kuhnroyal/mat-datetimepicker#63
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

No branches or pull requests

1 participant