Skip to content

Commit

Permalink
#8 Add file output buffering for online translator
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan4253 committed Jan 15, 2024
1 parent b559e47 commit 5d44c71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file modified Backend/Backend.exe
Binary file not shown.
2 changes: 2 additions & 0 deletions TenshiTranslator/Translator/OnlineTranslator.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ def translate(self, inputFilePath: str):

if TenshiTranslator.Util.TextProcessor.isEmptyLine(japanese):
englishLines.append('\n')
# Makes sure output is not too fast
sleep(0.1)
continue

japanese = self.glossary.replaceNames(japanese)
Expand Down

0 comments on commit 5d44c71

Please sign in to comment.