Describe the bug
I'm using locale pt-BR but component still in english (labels and formats)
Screenshots


Desktop (please complete the following information):
Version: 63.0.3368.107
OS: Windows 10
Version: 69.0.3
OS: Windows 10
The same thing, but with 'ru' locale
@Cligor, I made it work for 'ru' locale by installing date-fns as a dependency (maybe it is unnecessary as soon as date-fns is dep of react-datepicker) and importing of the desired local and passing it as locale prop into Datepicker component.
import ru from 'date-fns/locale/ru';
<Datepicker
selected={value}
onChange={date => onValueChange(date)}
showTimeSelect
showTimeSelectOnly
timeIntervals={10}
timeCaption="Time"
locale={ru}
dateFormat="hh:mm aa"
/>
@Cligor use 'ptBR' instead of 'pt-BR'
import ReactDatePicker,{registerLocale} from 'react-datepicker';
import ptBR from 'date-fns/locale/pt-BR';
registerLocale('ptBR', ptBR);
<ReactDatePicker
name='date'
selected={selected}
locale="ptBR"
/>
@ShiiRochi @lucaswx2 Both solutions work. Thanks guys!
Most helpful comment
@Cligor use 'ptBR' instead of 'pt-BR'