Hướng dẫn google translate python offline
Show Nội dung chính
Translate is a simple but powerful translation tool written in python with with support for multiple translation providers. By now we offer integration with Microsoft Translation API, Translated MyMemory API, LibreTranslate, and DeepL’s free and pro APIs Why Should I Use This?The biggest reason to use translate is to make translations in a simple way without the need of bigger effort and can be used as a translation tool like command line Installation
Or, you can download the source and
Prefix ‘sudo’ if you encounter a problem. Features
UsageIn your command-line:
Or
Options
Change Default LanguagesIn ~/.python-translate.cfg:
The cfg is not for use as a Python module. or run the command line and follow the steps:
Use As A Python Module
The result is usually a unicode string. Use a different translation provider
The DeepL ProviderTo use DeepL’s pro API, pass an additional parameter called pro to the Translator object and set it to True and use your pro authentication key as the secret_access_key
DocumentationCheck out the latest translate documentation at Read the Docs ContributingPlease send pull requests, very much appreciated.
Changelog3.6.1
3.5.0
3.4.1
3.4.0
3.3.0
3.2.1
3.2.0
3.1.0
3.0.0
2.0.0 (2017-11-08)
|