Commit Graph

18 Commits

Author SHA1 Message Date
SuHun Han
e10c5e8fa7
chore: v3.0.0 (#181)
Co-authored-by: Kirill Bobrov <miaplanedo@gmail.com>
Co-authored-by: Zhuopsticks <36221214+terryyz@users.noreply.github.com>
2020-06-14 15:42:32 +09:00
SuHun Han
312f36ad87 fix(client): pronunciation is None for some languages (#175) 2020-06-09 09:35:25 +09:00
Bastien Vallet
778b00758e
chore: Remove python 2.7 support and various cleanup (#179)
Co-authored-by: Bastien Vallet <b.vallet@criteo.com>
2020-06-08 19:09:24 +09:00
Artur Aleksanyan
afb17c76bf Add ability to pass translation api params dinamically (#136)
* fix googletrans emoji bug

use py-gogoletrans translate text, if contains emoji, will raise JSONDecodeError.

* add ability to pass translation api params dinamically

* fix batch translate

Co-authored-by: clinjie <mlinjie@foxmail.com>
2020-02-08 17:17:31 +09:00
Jakub Molinski
2c85a4a976 feat: add an extra_data field to Translation containing the whole gtranslate response (#59) 2018-05-06 21:14:06 +09:00
Mateusz Susik
57076b5ad8 timeout implementation (#52)
Signed-off-by: Mateusz Susik <mateusz.susik@sigmoidal.io>
2017-12-30 22:56:50 +09:00
Xiao Meifeng
8105d07269 add proxy support (#41) 2017-10-26 12:35:20 +09:00
Encrylize
034646e289 Fix incorrect source language and pronunciation (#29)
* Fix incorrect source language and pronunciation

* Add tests for source language and pronunciation
2017-08-08 20:42:22 +09:00
Walter Purcaro
04a0e6dfbb Support languages names and RFC 1766 codes (#26)
* Update client.py

Accept languages names as dest/src params in the `translate` routine.
Move dest/src params check to the `translate` routine.

* Update constants.py

Add LANGCODES dict

* Update __init__.py

Import LANGCODES

* Update test_client.py

Add tests

* Update constants.py

Fix typo
2017-06-01 22:50:13 +09:00
garden.yuen
ae4953dff9 gtoken: use custom server to generate token (#19)
* use custome server to generate token

* fix test fail issue
2017-04-23 20:52:23 +09:00
SuHun Han
eaac0f1130 Fix an issue where the result text is not returned completely (cut off)
This solves issues #10 and #12, and adds a test case for it.
2017-04-01 19:58:17 +09:00
SuHun Han
d1c64a11d6 Update documentation with a new sphinx theme 'solar' 2017-03-15 22:10:37 +09:00
SuHun Han
0f943b6a64 Add support for customizable service url 2017-03-11 22:37:03 +09:00
SuHun Han
92ea3cd2c1 Update README 2017-03-11 16:20:27 +09:00
SuHun Han
dda50305b7 PEP8 2017-03-10 23:43:06 +09:00
SuHun Han
5f908fab16 Better compatiblity with all python versions 2017-03-10 23:43:06 +09:00
SuHun Han
deb36364f7 Refactor client 2017-03-10 23:43:06 +09:00
SuHun Han
9a70d82281 Refactor all the things 2017-03-10 23:43:06 +09:00