ng-matero / extensions

Angular Material Extensions Library.
https://ng-matero.github.io/extensions/
MIT License
393 stars 48 forks source link

Add input values for custom button text in datetimepicker #239

Closed cerealexx closed 10 months ago

cerealexx commented 10 months ago

It'd be great to have either that or localize them natively depending on locale. Is there a hacky way to translate those "cancel" and "ok" texts meanwhile?

nzbin commented 10 months ago

Please check #141 for i18n.

@NgModule({
  imports: [MatDatepickerModule, MatNativeDateModule],
  providers: [
    {provide: MtxDatetimepickerIntl, useClass: MyIntl},
  ],
})
export class MyApp {}
cerealexx commented 10 months ago

Missed that, thx!