A translation package
Project description
A python translation package
Installation:
pip install translation
Try:
from translation import baidu, google, youdao, iciba
print(baidu('hello world!', dst = 'zh'))
print(youdao('hello world!', dst = 'zh-CN'))
print(iciba('hello world!', dst = 'zh'))
print(google('hello world!', dst = 'zh-CN', proxies = {'http': '127.0.0.1:1080'}))
Language:
el : Greek, eo : Esperanto, en : English, af : Afrikaans, sw : Swahili, ca : Catalan, it : Italian, iw : Hebrew, sv : Swedish, cs : Czech, cy : Welsh, ar : Arabic, ur : Urdu, ga : Irish, eu : Basque, et : Estonian, az : Azerbaijani, id : Indonesian, es : Spanish, ru : Russian, gl : Galician, nl : Dutch, pt : Portuguese, la : Latin, tr : Turkish, tl : Filipino, lv : Latvian, lt : Lithuanian, th : Thai, vi : Vietnamese, gu : Gujarati, ro : Romanian, is : Icelandic, pl : Polish, ta : Tamil, yi : Yiddish, be : Belarusian, fr : French, bg : Bulgarian, uk : Ukrainian, hr : Croatian, bn : Bengali, sl : Slovenian, ht : Haitian Creole, da : Danish, fa : Persian, hi : Hindi, fi : Finnish, hu : Hungarian, ja : Japanese, ka : Georgian, te : Telugu, zh-TW : Chinese Traditional, sq : Albanian, no : Norwegian, ko : Korean, kn : Kannada, mk : Macedonian, zh-CN : Chinese Simplified, sk : Slovak, mt : Maltese, de : German, ms : Malay, sr : Serbian
Baidu
auto 自动检测 zh 中文 en 英语 yue 粤语 wyw 文言文 jp 日语 kor 韩语 fra 法语 spa 西班牙语 th 泰语 ara 阿拉伯语 ru 俄语 pt 葡萄牙语 de 德语 it 意大利语 el 希腊语 nl 荷兰语 pl 波兰语 bul 保加利亚语 est 爱沙尼亚语 dan 丹麦语 fin 芬兰语 cs 捷克语 rom 罗马尼亚语 slo 斯洛文尼亚语 swe 瑞典语 hu 匈牙利语 cht 繁体中文
iciba
zh 中文 ja 日语 es 西班牙语 en 英文 ko 韩语 fr 法语 de 德语
youdao
zh-CN 中文 en 英文 ja 日语 kr 韩语 ru 俄语 sp 西班牙语 fr 法语
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
translation-1.0.1.zip
(12.4 kB
view hashes)
Built Distribution
Close
Hashes for translation-1.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87b699045cbd03da9043ec95c984db150b58fc6ec326f3fea78c0f6e98c2c1ca |
|
MD5 | d0d0680fdf8ea4dd66c2ab9b11e6c59c |
|
BLAKE2b-256 | 333af077225c9f38aa294279291cf6ebb1548e5b3071ee61751880c4c486126b |