feat: translator

This commit is contained in:
Bobo
2025-05-14 20:43:37 +08:00
parent 982e18a991
commit 3b2678de10
13 changed files with 564 additions and 0 deletions

7
translator/translator.go Normal file
View File

@@ -0,0 +1,7 @@
package translator
// Translator 翻译器
type Translator interface {
// Translate 翻译
Translate(source, sourceLang, targetLang string) (string, error)
}