Gtran 0.1.5 | GitLocker.com Product

gtran 0.1.5

Last updated:

0 purchases

gtran 0.1.5 Image
gtran 0.1.5 Images
Add to Cart

Description:

gtran 0.1.5

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


Dependant

Pycurl



Urllib3



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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.