Skip to content

A tool for translating text through different languages using Google Translate

License

Notifications You must be signed in to change notification settings

jfblomgren/translatify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

translatify

translatify is a fun command line tool for translating text through different languages using Google Translate, usually for some amusing results.

Installation

translatify can be installed from PyPI using pip:

$ pip install translatify

Usage

Autodetect the language of the original text and run it through all languages on Google Translate:

$ translatify "Google Translate is not always accurate"
[English -> Afrikaans]
Google Translate is nie altyd akkuraat nie
[Afrikaans -> Albanian]
Google Translate nuk është gjithmonë i saktë

[....]

[Yiddish -> Yoruba]
Fun apẹẹrẹ, nigbati isedale.
[Yoruba -> Zulu]
Ngokwesibonelo, lapho biology.

Alternatively, you can specify the source and target languages yourself:

$ translatify -s en -t da,zh-cn,de,en "Google Translate is not always accurate"
[English -> Danish]
Google Translate er ikke altid korrekt
[Danish -> Chinese (Simplified)]
谷歌翻译并不总是正确的
[Chinese (Simplified) -> German]
Google-Übersetzung ist nicht immer richtig
[German -> English]
Google translation is not always correct

You can specify all as a target language to include all the languages in alphabetical order:

$ translatify -t de,all,de,en "Google Translate is not always accurate"
[English -> German]
Google Translate ist nicht immer richtig
[German -> Afrikaans]
Google Translate is nie altyd reg nie

[....]

[Zulu -> German]
Google
[German -> English]
Google

Languages can be listed using the --list flag:

$ translatify --list
Code   Name
af     Afrikaans
sq     Albanian
am     Amharic
ar     Arabic
hy     Armenian
az     Azerbaijani
eu     Basque
be     Belarusian
bn     Bengali
bs     Bosnian
bg     Bulgarian
ca     Catalan

[....]

About

A tool for translating text through different languages using Google Translate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages