feat: translator
This commit is contained in:
7
translator/translator.go
Normal file
7
translator/translator.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package translator
|
||||
|
||||
// Translator 翻译器
|
||||
type Translator interface {
|
||||
// Translate 翻译
|
||||
Translate(source, sourceLang, targetLang string) (string, error)
|
||||
}
|
||||
Reference in New Issue
Block a user