This commit is contained in:
Markos Gogoulos
2026-03-13 18:54:51 +02:00
parent 04693f11c8
commit a40a0037bd
3 changed files with 3 additions and 3 deletions

View File

@@ -57,4 +57,4 @@ def translate_string(language_code, string):
if not check_language_code(language_code): if not check_language_code(language_code):
return string return string
return translation_strings[language_code].get(string, string) return translation_strings[language_code].get(string) or string

View File

@@ -1,5 +1,5 @@
// check templates/config/installation/translations.html for more // check templates/config/installation/translations.html for more
export function translateString(str) { export function translateString(str) {
return window.TRANSLATION?.[str] ?? str; return window.TRANSLATION?.[str] || str;
} }

File diff suppressed because one or more lines are too long