v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-17 08:10:22 -07:00

22 Commits

Author SHA1 Message Date
Oguzhan Selcuk
129d8baed3
feat(translator): Add DeepL support (#20) 2023-05-16 13:26:31 +08:00
Xun
aa957d195c
feat(translator): add ChatGPT (#18)
* feat(translator): add ChatGPT

* feat: check chatgpt error

* refactor: change chatgpt apiKey not set text

* refactor: change language to google

* docs: yaml indent with 4

* refactor: APIKey in struct
2023-05-12 13:53:23 +08:00
eeeXun
4f30ce9df6 refactor: rename Translator name without Translate 2023-04-29 00:17:09 +08:00
eeeXun
96e7b6c3ac refactor: return translation in struct 2023-04-22 21:02:38 +08:00
eeeXun
9feba79000 style: reorder AllTranslator 2023-04-22 20:37:43 +08:00
Xun
e0c5569adf
feat(translator): add BingTranslate (#16) 2023-04-22 00:17:18 +08:00
eeeXun
cbd985b599 refactor: make Language, TTSLock and EngineName to struct in Translator
GetSrcLang, GetDstLang, SetSrcLang, SetDstLang, SwapLang are reusable
functions from translator to translator. So make Language struct.

GetEngineName is also a reusable function. So make EngineName struct.

Finally, let Translator to inherit those functions in these three
(Language, TTSLock, EngineName) structs. No need to write the duplicated
functions for each Translator.
2023-03-10 23:37:08 +08:00
Xun
ea1e23172c
feat(translator): add ReversoTranslate (#14) 2023-03-10 20:51:38 +08:00
Xun
5fcb72cbb2
feat(translator): add ApertiumTranslate (#13) 2023-02-13 15:22:04 +08:00
eeeXun
0239561276 style: Declare string only once in Translate & PlayTTS 2023-02-12 17:22:04 +08:00
eeeXun
34805264b3 refactor: rename go module 2023-02-11 14:23:07 +08:00
eeeXun
513ad36470 refactor: NewTranslator in for-loop
NewTranslator by name, so no need to create functions for each Translate
2023-02-03 13:30:55 +08:00
eeeXun
898ac53b97 style: rename NewLibreTranslate to NewArgosTranslate 2023-01-29 15:17:41 +08:00
eeeXun
3c33708f33 style: rename LibreTranslate to ArgosTranslate
LibreTranslate is an API and web-app built on top of Argos Translate
2023-01-27 16:49:33 +08:00
eeeXun
1115d19b7a feat: add translatorDropDown 2023-01-27 12:24:42 +08:00
eeeXun
0faaa757e3 feat: add libretranslate 2023-01-26 23:45:59 +08:00
eeeXun
4a15946142 style: rename google to googletranslate 2023-01-26 11:56:38 +08:00
eeeXun
ed2bd312a3 refactor: make translator to an interface 2023-01-26 01:15:53 +08:00
Xun
d99585b386
feat: add definition & part of speech (#5) 2023-01-18 14:30:44 +08:00
eeeXun
10c6877230 style: rename function & reorder function call
- rename function `translatePageHandler` to `translateWindow`
- reorder function call in `ui.go`, let function call jointed
- change the position of comment
2023-01-11 10:49:12 +08:00
eeeXun
94ec8498ac style(format): run goimports 2023-01-09 19:17:01 +00:00
eeeXun
98d1cb3392 Initial commit 2022-10-24 23:43:20 +08:00