I am using the following module: react-big-calendar
In the project in which I am using it, user has the possibility to change the system language.
I would like to make the days of the week change according to the language selected by the user.
Link: Codesanbox
Code:
const React = require("react");
const { Calendar, momentLocalizer } = require("react-big-calendar");
const moment = require("moment");
const localizer = momentLocalizer(moment);
const ReportCalendar = ({ eventList }) => {
return (
<Calendar
localizer={localizer}
events={eventList}
startAccessor="start"
endAccessor="end"
style={{ height: "550px", width: "850px" }}
/>
);
};
module.exports = ReportCalendar;