1
0
Fork 0

fix(make_readme): antifeatures_list content was modified by reference thus breaking translations

This commit is contained in:
Laurent Peuch 2024-03-07 00:39:38 +01:00 committed by OniriCorpe
parent c3bb3b51d3
commit b12f9c9919

View file

@ -4,6 +4,7 @@ import argparse
import json
import os
from pathlib import Path
from copy import deepcopy
import toml
from jinja2 import Environment, FileSystemLoader
@ -74,7 +75,7 @@ def generate_READMEs(app_path: str):
disclaimer = None
# TODO: Add url to the documentation... and actually create that documentation :D
antifeatures = { a: antifeatures_list[a] for a in from_catalog.get('antifeatures', [])}
antifeatures = { a: deepcopy(antifeatures_list[a]) for a in from_catalog.get('antifeatures', [])}
for k, v in antifeatures.items():
antifeatures[k]['title'] = value_for_lang(v['title'], lang)
if manifest.get("antifeatures", {}).get(k, None):