Merge pull request #1630 from YunoHost/fix-cp-titles

fix i18n panel+section names
This commit is contained in:
Alexandre Aubin 2023-03-27 19:58:37 +02:00 committed by GitHub
commit 8b1184f11b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -581,7 +581,7 @@ class ConfigPanel:
logger.warning(f"Unknown key '{key}' found in config panel")
# Todo search all i18n keys
out[key] = (
value if key not in ["ask", "help", "name"] else {"en": value}
value if key not in ["ask", "help", "name"] or isinstance(value, dict) else {"en": value}
)
return out