🐛 Fix logic for language selection

Closes #4762
This commit is contained in:
Gina Häußge committed 2023-03-13 15:45:17 +01:00
1 parent 658c5578e2
commit 65f53f3d86
1 file changed
+3 -2
+3 -2
View File
@@ -1420,8 +1420,9 @@ class Server:
except octoprint.access.users.UnknownUser:
pass
elif (
default_language is not None
if (
not l10n
and default_language is not None
and not default_language == "_default"
and default_language in LANGUAGES
):