Open Crowdium opened 5 years ago
Hi!
Just override MAT_DATE_LOCALE
on providers
at app.module.ts
:
import {MAT_DATE_LOCALE} from '@angular/material/core';
@NgModule({
providers: [
{provide: MAT_DATE_LOCALE, useValue: 'es-ES'},
],
})
Is it possible to specify the language at runtime? Our customers should have the choice to switch between languages
Thanks for this great component.
I'm trying to localize the datepicker into spanish. I tried using the option locale:'es' but nothing changes, neither the month names nor the rest of the text.
Is there any way to easily localize the component without editing the vendor files?