miyushan / mui-daterange-picker-plus

A modern Typescript/JavaScript library for simplifying date-range related operations and enhancing date-picker components in web applications. It provides a range of utilities, including date formatting, parsing, and a fully customizable date range picker with support for various locales.
8 stars 6 forks source link

I can't set a different locale on the whole component #9

Open stary71 opened 4 months ago

stary71 commented 4 months ago

Hello guys, I really appreciate your efforts but there is an issue I haven't found a solution for. When I put say locale={ru} (any language, for example "es"), the modal (no matter, the PickerBase do the same) shows the Russian locale on the result line only. All the rest of the component (I need the calendar to be localized of course) is still in English. See the screenshot below. image Could you provide the right way to solve this please? Thank you very much.

miyushan commented 4 months ago

Hi, thank you for reporting this issue. I appreciate your feedback. It appears to be a bug. Will investigate and work on a fix as soon as possible. Thanks.

Best regards, Miyushan

dbtek commented 2 months ago

This should be fixed now with #11

miyushan commented 1 month ago

Hi @dbtek, I think it needs multilanguage support which useful to change the placeholders for different languages. We have to use package like i18next to achieve this.

Please suggest me if you have any ideas regarding this. Thanks.