Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement Request: Customizable Time Translation in ShowTimeSelect #4670

Open
Kanmuruuruu opened this issue Apr 8, 2024 · 1 comment
Open

Comments

@Kanmuruuruu
Copy link

I've noticed an issue within the react-datepicker package on GitHub.

When using ShowTimeSelect, there seems to be no straightforward way to customize the translation of "Time."

I've successfully implemented translations throughout the react-datepicker package, except for the 'Time' translation within the ShowTimeSelect feature.

Is it possible to consider adding this feature?

image
In english

image
In spanish

@hugoburguete
Copy link

You can use the property timeCaption to change the "Time" wording. You find an example here:

    <DatePicker
      ...
      timeCaption="Hora"
    />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants