After reading react-datepicker doc's I have tried changing my date picker language as the doc's instructions:
Globally by calling moment.locale(lang) Picker-specific by providing the locale prop
My question is where to write this setting in a react app.
1- app.js (constructor).
2- date-picker component(constructor).
3-somewhere else...
And how to set it as prop, I have tried :
<DatePicker locale='gr'
minDate={this.props.minDate}
selected={this.state.startDate}
onChange={this.handleChange}
disabled = {this.props.disabled}
/>;
and it is still showing up as English.
BTW - anyone know what is the language string to Hebrew? thanks.