You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
hello
i set locale prop in datePicker and import 'moment/locale/fa' , but just font change to persian , and datepicker load en .
it is my code:
import React from 'react';
import moment from 'moment';
import 'moment/locale/fa';
import DatePicker from 'react-datepicker';
import 'react-datepicker/dist/react-datepicker.css';
export default class Calendar extends React.Component {
constructor (props) {
super(props)
this.state = {
startDate: moment()
};
this.handleChange = this.handleChange.bind(this);
}
handleChange(date) {
this.setState({
startDate: date
});
}
render() {
moment.updateLocale('fa',null)
return ;
}
}
Thank you if you answer
The text was updated successfully, but these errors were encountered: