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.3.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for translate_util-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc92e60807d9a5e54ae0d87b8ea4611ead34314241993c31b9e9603a5be7952d |
|
MD5 | 69808aae992f94b9cc47c35dbaa220a6 |
|
BLAKE2b-256 | e5b6ff8502ee568e45d098886279d0f7aa7f459fa23af952fd555881c256b86c |