Skip to main content

A fun tool to convert text into different languages using Google Translate

Project description

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

[....]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

translatify-1.0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page