Skip to content

abo123456789/translate_util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages