/translate_util

translate tool support baidu,google,youdao,iciba

Primary LanguagePythonMIT LicenseMIT

avatar
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