Skip to content

Commit

Permalink
Don't reset language to default after logout
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Sep 28, 2022
1 parent bfeb8ef commit 6dc70d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/layout/Login.js
Expand Up @@ -336,7 +336,7 @@ const LoginWithTheme = (props) => {
const version = useVersion()

useEffect(() => {
if (config.defaultLanguage !== '') {
if (config.defaultLanguage !== '' && !localStorage.getItem('locale')) {
retrieveTranslation(config.defaultLanguage)
.then(() => {
setLocale(config.defaultLanguage).then(() => {
Expand Down

0 comments on commit 6dc70d6

Please sign in to comment.