mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-03-14 00:41:58 -04:00
a
This commit is contained in:
@@ -57,4 +57,4 @@ def translate_string(language_code, string):
|
||||
if not check_language_code(language_code):
|
||||
return string
|
||||
|
||||
return translation_strings[language_code].get(string, string)
|
||||
return translation_strings[language_code].get(string) or string
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// check templates/config/installation/translations.html for more
|
||||
|
||||
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
Reference in New Issue
Block a user