fix(make_readme): antifeatures_list content was modified by reference thus breaking translations
This commit is contained in:
parent
c3bb3b51d3
commit
b12f9c9919
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ import argparse
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from copy import deepcopy
|
||||||
|
|
||||||
import toml
|
import toml
|
||||||
from jinja2 import Environment, FileSystemLoader
|
from jinja2 import Environment, FileSystemLoader
|
||||||
|
@ -74,7 +75,7 @@ def generate_READMEs(app_path: str):
|
||||||
disclaimer = None
|
disclaimer = None
|
||||||
|
|
||||||
# TODO: Add url to the documentation... and actually create that documentation :D
|
# 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():
|
for k, v in antifeatures.items():
|
||||||
antifeatures[k]['title'] = value_for_lang(v['title'], lang)
|
antifeatures[k]['title'] = value_for_lang(v['title'], lang)
|
||||||
if manifest.get("antifeatures", {}).get(k, None):
|
if manifest.get("antifeatures", {}).get(k, None):
|
||||||
|
|
Loading…
Reference in a new issue