TYPO3 - Language selection menu problem

Hi,
After upgrading My Typo3 site form v9.5.31 to v10. 4. 21 I have problem !
I have a bilingual site in typo3. French/ English. In the navigation menu, there is a button to switch the display from one language to another.
When the site is displayed in French the button is labeled “English” so that if the user wants to display in English, he only has to click on the button “English”.


When the site is displayed in English the button should be labeled “Français” so that if the user wants to display in French, he only has to click on the “Français” button.
The problem I have, since I did the upgrade (v9.5.31 to v10.4.21) is that the button always stays with the label «English» even if the site is already displayed in English.

Do you have a solution please?
Thank you in advance.

You should double check your site configuration and ensure you use “Français” and not “French” for the navigation title.

Hi,
100% I use “Français” and not “Frensh”,
I think that the configuration of the site is good except that it is not used by the “Language selection menu”

I cannot find the code in “TypoScript” which defines the automatic use of the site configuration.
Do you have any idea, please?
Thank you.