Skip to content

Commit

Permalink
Update import order for German translations and ignore linting
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Mar 21, 2024
1 parent 400a0c3 commit 76790fb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
import json
import os
import sys
from scribe_data.utils import translate_to_other_languages

PATH_TO_SCRIBE_ORG = os.path.dirname(sys.path[0]).split("Scribe-Data")[0]
PATH_TO_SCRIBE_DATA_SRC = f"{PATH_TO_SCRIBE_ORG}Scribe-Data/src"
sys.path.insert(0, PATH_TO_SCRIBE_DATA_SRC)

from scribe_data.utils import translate_to_other_languages # noqa: E402

SRC_LANG = "German"
translate_script_dir = os.path.dirname(os.path.abspath(__file__))
words_to_translate_path = os.path.join(translate_script_dir, "words_to_translate.json")
Expand All @@ -37,4 +38,4 @@
word_list=word_list,
translations=translations,
batch_size=100,
)
)

0 comments on commit 76790fb

Please sign in to comment.