Skip to content

Auto detect the language and translate it to another language

License

Notifications You must be signed in to change notification settings

bill-shuzhou-liu/translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto detect the language and translate it to another language

install

pip install -e .

run

cat  tests/example.txt | python3 -m pytranslator

how to use

from pytranslator import translator
trans = translator.Translator(to_language = "en")
trans.translate("Còn đợi Merge với confirm nữa là xong")

The default cache file is: ~/.cache3/default.sqlite3

About

Auto detect the language and translate it to another language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages