TenshiTranslator.OutputFormat.EnglishOnlyFormat module

class TenshiTranslator.OutputFormat.EnglishOnlyFormat.EnglishOnlyFormat

Bases: OutputFormat

Output format that mimics the structure of the input file, but only contains the translated lines

writeFile(outputFilePath: str, japaneseLines: list[str], englishLines: list[str])

Writes the translated lines to a file. file will be overwritten if it already exists

Parameters:
  • outputFilePath – path to the output file.

  • japaneseLines – list of japanese lines

  • englishLines – list of translated lines