Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
steph-feng committed Nov 12, 2024
1 parent 30c83e9 commit 9d208bc
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions core/i18nilize/services/translation_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,9 @@ def get_translations_by_language(language, token):
Return all translations for the given language as a dictionary.
"""
translations = Translation.objects.filter(language=language, token=token)

# if not translations:
# translations = create_default_translations_for_language(language, token)

translations_dict = {
translation.original_word: translation.translated_word
for translation in translations
}
return translations_dict

# def create_default_translations_for_language(language, token):
# to be implemented by Brian & Angela's ticket?
return translations_dict

0 comments on commit 9d208bc

Please sign in to comment.