Handle subtag title internationalization also

This commit is contained in:
Alexandre Aubin 2019-11-30 18:10:39 +01:00
parent 06fe3504b3
commit df3051f2de

View file

@ -96,6 +96,8 @@ def app_catalog(full=False, with_categories=False):
for category in catalog["categories"]:
category["title"] = _value_for_locale(category["title"])
category["description"] = _value_for_locale(category["description"])
for subtags in category.get("subtags", []):
subtags["title"] = _value_for_locale(subtags["title"])
if not full:
catalog["categories"] = [{"id": c["id"],