Skip to content

Commit

Permalink
there
Browse files Browse the repository at this point in the history
  • Loading branch information
Soapy7261 committed Aug 1, 2024
1 parent 6c5f1e9 commit 0d7eaa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/translation/get_translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def _get_translation_map(self) -> dict:
translation_map[dirname.removeprefix("./translations/")] = json_data
return translation_map
def get_translation(self, language: str, message_code: str) -> str:
translation_map = Translation._get_translation_map()
translation_map = self._get_translation_map()
try:
return translation_map[language][message_code]
except KeyError:
Expand Down

0 comments on commit 0d7eaa2

Please sign in to comment.