coachcare / npm-datepicker

Material Datepicker Fork with TimePicker by CoachCare
MIT License
32 stars 18 forks source link

Custom translations #8

Closed Enngage closed 6 years ago

Enngage commented 6 years ago

Hi, is there a way to translate 'OK' & 'CANCEL' buttons?

On a sidenote - The buttons don't have any margin between them, you might want to add some.

matheo commented 6 years ago

You can provide your own MatDatepickerIntl: https://material.angular.io/components/datepicker/overview#localizing-labels-and-messages

following this interface: https://github.com/selvera/npm-datepicker/blob/master/datepicker/src/lib/datepicker-intl.ts#L12

and yeah, I have to fix those margins! :)

Enngage commented 6 years ago

Thank you! The 'submit' label is missing from their documentation page and I didn't know it existed :-)

On Sun, 1 Jul 2018 at 18:28, Mateo Tibaquirá notifications@github.com wrote:

Closed #8 https://github.com/selvera/npm-datepicker/issues/8 via 716668a https://github.com/selvera/npm-datepicker/commit/716668a9f0ea9c0f4f20e3b66ddcdd327ad84314 .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/selvera/npm-datepicker/issues/8#event-1710350210, or mute the thread https://github.com/notifications/unsubscribe-auth/AGzoR1jkVfKVzAfRfsESF4NHr4gTVUYLks5uCPi2gaJpZM4U-T29 .

matheo commented 6 years ago

@Enngage It exists here because the official module doesn't confirm the selection ;)