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.2.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for translate_util-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 009a2d706016de6ecf8d7edb2d4c2515d2183d6dedb45536b040be224f16dd4a |
|
MD5 | 642e7aa72f4cb7a1787c4453ff4bc419 |
|
BLAKE2b-256 | 29e0f5d5876f6a48b60ca9534e3f8a21bcf0e1977050844d3d7aa590bf55d83b |