v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-18 08:40:35 -07:00

7 Commits

Author SHA1 Message Date
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
eeeXun
c1ebe7eb3c style: move main code out of if statement 2023-02-15 20:39:53 +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
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