Skip to content

Commit

Permalink
update: 修复DeepL翻译引擎;
Browse files Browse the repository at this point in the history
  • Loading branch information
speauty committed May 25, 2023
1 parent 68a85e0 commit 00f0c88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions domain/service/translator/deepl/translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,20 @@ func New() *Translator {
type Translator struct {
id string
name string
cfg translator.ImplConfig
qps int
procMax int
textMaxLen int
langSupported []translator.LangPair
sep string
}

func (customT *Translator) Init(_ interface{}) {}
func (customT *Translator) Init(cfg translator.ImplConfig) { customT.cfg = cfg }

func (customT *Translator) GetId() string { return customT.id }
func (customT *Translator) GetShortId() string { return "dl" }
func (customT *Translator) GetName() string { return customT.name }
func (customT *Translator) GetCfg() interface{} { return nil }
func (customT *Translator) GetCfg() translator.ImplConfig { return customT.cfg }
func (customT *Translator) GetQPS() int { return customT.qps }
func (customT *Translator) GetProcMax() int { return customT.procMax }
func (customT *Translator) GetTextMaxLen() int { return customT.textMaxLen }
Expand Down

0 comments on commit 00f0c88

Please sign in to comment.