translate tool support(google)
Project description
translate utils support google
[introduction]
- support version: python 3.0+
down install
- pip install:
pip install translate-util
DEMO
from translate_util.translate_tool import translate_other2cn,translate_other2en,translate_text
# translate other language to chinese (default use google)
print(translate_other2cn('china'))
# translate other language to english (default use google)
print(translate_other2en('中国'))
# translate other language to de ,support any language
# tl demo: zh-CN/de/fr/en/it/es
print(translate_text('china', tl='de'))
OTHER SUPPORT
any customization demand,contact me with email
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
translate_util-1.1.4.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for translate_util-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a70f36fc72bbffbc50262026ba7158cd64acfaab4b0af5d751c0ccf674a857e6 |
|
MD5 | 12362ea6841e92e149d02f0c3dfa56d8 |
|
BLAKE2b-256 | 8080e1a1feb8c46173afb4f2d1e4b8ee9a9847b65d73bdacfd71e80944e5ba8b |