ngx-mat-daterange-picker
ngx-mat-daterange-picker copied to clipboard
Problems with localization
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?
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