Skip to content

Commit

Permalink
fix regression on language detection
Browse files Browse the repository at this point in the history
  caused by 8d2fcd7
  • Loading branch information
allgood committed Jul 11, 2024
1 parent 2aff0ad commit ccdf683
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ const App = () => {
), [appLogoLight, appLogoDark, appLogoFavicon, appName, locale, mode, primaryColorDark, primaryColorLight]);

useEffect(() => {
const i18nlocale = localStorage.getItem("i18nextLng");
const i18nlocale = localStorage.getItem("language");
if (!i18nlocale) {
return;
}

const browserLocale =
i18nlocale.substring(0, 2) + i18nlocale.substring(3, 5);

Expand Down

0 comments on commit ccdf683

Please sign in to comment.