Chain-Translator is a Python script that automates a chain of Google translations, with the aim of generating comedic results. The script is highly configurable and able to easily adapt to different use cases.
The available configurations are listed below:
translate_list.txt contains the strings the user wishes to translate, separated by line.
config.json contains several configurations for the translator.
base_languagedetermines the starting language of the translator. Usually, this should be set to the same language as the strings intranslate_list.txt. This also determines the language of the final output for each translated string. Defaults toen, for English.language_chaindetermines what languages are used in each translation chain.translate_back_to_base_each_timedetermines whether each step in the translation chain is translated back to the language specified bybase_language. Note that the final output will still be in the base language regardless of this setting. Defaults totrue.randomize_chain_for_each_stringrandomizes the order of the languages specified bylanguage_chainfor each translated string. Defaults tofalse.print_all_available_languagesis a utility that prints every available language, along with its language code, for use inbase_languageandlanguage_chain. Note that if this is set totrue, no actual translations will be done. Defaults tofalse.