vascofg / react-admin-date-inputs

Date Inputs for react-admin
MIT License
67 stars 81 forks source link

Buttons not translated #33

Open sfarkas1988 opened 4 years ago

sfarkas1988 commented 4 years ago

Hey guys, my buttons (ok, cancel, clear) are not translated properly and I cannot find any way to overwrite the text of the buttons. Following my code to render DateInput in german. Besides of the buttons everything else is translated properly.

`import deLocale from "date-fns/locale/de"; import DateFnsUtils from '@date-io/date-fns'; import {DateInput} from 'react-admin-date-inputs';

<DateInput alwaysOn source="startDate" label="Start" parse={dateParser} providerOptions={{ utils: DateFnsUtils, locale: deLocale }} options={{ format: 'dd.MM.YYYY', clearable: true }} />`

Thank you in advance.