eeeXun
42b01a8cb2
refactor: rename variables & change some data type to interface array
2023-03-30 19:49:05 +08:00
eeeXun
62987e6c5e
fix: ReversoTranslate with multi-line translation
2023-03-27 16:39:01 +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
eeeXun
13e9f96c2b
refactor: defer SoundLock.Release
function in PlayTTS
...
SoundLock should release before leaving the PlayTTS function
2023-03-10 21:02:06 +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
f6b7d6a330
style(format): run goimports
2023-02-01 05:52:22 +00:00
muvment
3f8aa5bcdd
feat: Added Google translate auto option ( #9 )
2023-02-01 13:52:00 +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