Skip to content

Commit

Permalink
WIP - fix loading test translations
Browse files Browse the repository at this point in the history
  • Loading branch information
grdddj committed Oct 17, 2023
1 parent b2db1ac commit f46e7e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def _get_all_language_data() -> list[dict[str, dict[str, str]]]:

def _get_language_data(language: str) -> dict[str, dict[str, str]]:
file = TRANSLATIONS / f"{language}.json"
return json.loads(file.read_text())
return json.loads(file.read_text())["translations"]


all_language_data = _get_all_language_data()
Expand Down

0 comments on commit f46e7e6

Please sign in to comment.