web-ridge / react-native-paper-dates

Smooth and fast cross platform Material Design date and time picker for React Native Paper
https://www.reactnativepaperdates.com
MIT License
640 stars 164 forks source link

Range Date Picker Text not Translatable #284

Closed gustavokenzo1 closed 1 year ago

gustavokenzo1 commented 1 year ago

Despite having all the translation options, the is one missing in the date range picker, which is the placeholder for the Start and End dates on the Header.

It would be nice if that text was also translatable, since it's hard coded right now.

For now, I just changed it in the node_modules, it's that "Entrada - Saída" text in the screenshot below.

Screenshot 2023-05-09 at 10 57 27

Here's the file that I changed: node_modules > react-native-paper-dates > src > Date > DatePickerModalContentHeader.tsx It's hard-coded in the props of the HeaderContentRange component

iM-GeeKy commented 1 year ago

PRs are welcome!

RichardLindhout commented 1 year ago

I believe this could be done by using the startLabel & endLabel properties as props