[10] fix ignoring translation variables

This commit is contained in:
meisnate12 2023-01-09 09:56:40 -05:00
parent d92bd09575
commit 36eaf230b5
2 changed files with 3 additions and 3 deletions

View file

@ -1 +1 @@
1.18.2-develop9
1.18.2-develop10

View file

@ -306,8 +306,8 @@ class DataFile:
conditionals[k] = v
language = variables["language"] if "language" in variables else "default"
translation_variables = {k: v[language if language in v else "default"] for k, v in self.translations.items()}
translation_variables.update({k: v[language if language in v else "default"] for k, v in self.translation_variables.items() if language in v or "default" in v})
translation_variables = {k: v[language if language in v else "default"] for k, v in self.translations.items() if k not in optional}
translation_variables.update({k: v[language if language in v else "default"] for k, v in self.translation_variables.items() if (language in v or "default" in v) and k not in optional})
key_name_variables = {}
for var_key, var_value in self.key_names.items():
if var_key == "library_type" and language in var_value: