Skip to main content

A free and unlimited Google translator.

Project description

Gtran

  • A free and unlimited Google translator.

Installation

pip install translate

or you can download the source and run

python setup.py install

How to use as a python module?

from gtrans.gtrans import Gtran
translator = Gtran()

How to translate?

Default translate:

Every language to English

text = "こんにちは"
out = translator.translate(text=text)
print(out)
Hello

Custom translate:

Every language to target language

to_lang = "en"
text = "こんにちは"
out = translator.translate(to_lang=target, text = text)
print(out)
Hello

How to detect language?

Return Id:

text = "Hello"
translator.detectId(text=text)
en

Return name:

text = "Hello"
translator.detect(text=text)
English

Language ids

Language Id
Afrikaans af
Albanian sq
Amharic am
Arabic ar
Armenian hy
Azerbaijani az
Basque eu
Belarusian be
Bengali bn
Bosnian bs
Bulgarian bg
Catalan ca
Cebuano ceb (ISO-639-2)
Chinese (Simplified) zh-CN or zh
Chinese (Traditional) zh-TW
Corsican co
Croatian hr
Czech cs
Danish da
Dutch nl
English en
Esperanto eo
Estonian et
Finnish fi
French fr
Frisian fy
Galician gl
Georgian ka
German de
Greek el
Gujarati gu
Haitian Creole ht
Hausa ha
Hawaiian haw (ISO-639-
Hebrew he or iw
Hindi hi
Hmong hmn (ISO-639-2)
Hungarian hu
Icelandic is
Igbo ig
Indonesian id
Irish ga
Italian it
Japanese ja
Javanese jv
Kannada kn
Kazakh kk
Khmer km
Kinyarwanda rw
Korean ko
Kurdish ku
Kyrgyz ky
Lao lo
Latin la
Latvian lv
Lithuanian lt
Luxembourgish lb
Macedonian mk
Malagasy mg
Malay ms
Malayalam ml
Maltese mt
Maori mi
Marathi mr
Mongolian mn
Myanmar (Burmese) my
Nepali ne
Norwegian no
Nyanja (Chichewa) ny
Odia (Oriya) or
Pashto ps
Persian fa
Polish pl
Portuguese (Portugal Brazil) pt
Punjabi pa
Romanian ro
Russian ru
Samoan sm
Scots Gaelic gd
Serbian sr
Sesotho st
Shona sn
Sindhi sd
Sinhala (Sinhalese) si
Slovak sk
Slovenian sl
Somali so
Spanish es
Sundanese su
Swahili sw
Swedish sv
Tagalog (Filipino) tl
Tajik tg
Tamil ta
Tatar tt
Telugu te
Thai th
Turkish tr
Turkmen tk
Ukrainian uk
Urdu ur
Uyghur ug
Uzbek uz
Vietnamese vi
Welsh cy
Xhosa xh
Yiddish yi
Yoruba yo
Zulu zu

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

gtran-0.1.5.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

gtran-0.1.5-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file gtran-0.1.5.tar.gz.

File metadata

  • Download URL: gtran-0.1.5.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for gtran-0.1.5.tar.gz
Algorithm Hash digest
SHA256 cf63c0dd4a723dbfc0718075cfde4bc09717777804af6353bc4076cfedfc5831
MD5 d44b63ece629007fa4b82ec54ed53a79
BLAKE2b-256 a48bc93a0943fdf3ca04cf70f054e3935bc760fc9e9c0f672e58bc1c03a37481

See more details on using hashes here.

File details

Details for the file gtran-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: gtran-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for gtran-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bab3cb7b4f02f1e65c5cf5ce3145f15f67e36d27346408345015b665e6fc4104
MD5 691d2266cd5a5287103fb58d8a2efcb0
BLAKE2b-256 deb96252f0fafee2684c8a16a09e98a2db58eebea7310e8a0baf94e757e290ec

See more details on using hashes here.

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