Skip to content

Conversation

GrimonprezAlexis
Copy link

@GrimonprezAlexis GrimonprezAlexis commented Feb 11, 2022

Is you commit solved this problem ? i trying to change the locale to 'fr-FR' the top navigation change with locale but the label in calendar still default (show picture and sandbox), do you've a idea ?

(https://stackoverflow.com/questions/71079149/change-locale-langue-react-calendar)
https://codesandbox.io/s/create-a-calendar-in-react-js-forked-j2lud?file=/src/App.js:387-491

`
import Calendar from 'react-calendar';
import 'react-calendar/dist/Calendar.css'
import dayjs from 'dayjs';

<Calendar
onChange={handleChange}
value={dateValue}
locale={"fr-FR"}
formatDay={(locale, date) =>
dayjs(date).locale("fr").format("DD-MMMM-YYYY")
}
/>
`

Capture d’écran 2022-02-11 à 11 55 34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants