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

5 Commits

Author SHA1 Message Date
eeeXun
d0072abecc refactor: new a core.Language instead of return by function
Nothing needs to be initialized in core.Language. Just new one.
2023-04-29 01:41:31 +08:00
eeeXun
96e7b6c3ac refactor: return translation in struct 2023-04-22 21:02:38 +08:00
Xun
e0c5569adf
feat(translator): add BingTranslate (#16) 2023-04-22 00:17:18 +08:00
eeeXun
8ddd42b431 refactor: using in TTSLock in bool instead of int8
There should only one thread in TTSLock. bool is enough.
2023-04-07 20:27:51 +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