fix i18n panel+section names

This commit is contained in:
axolotle 2023-03-22 15:37:39 +01:00
parent 1b2fa91ff0
commit 2d03176c7f

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