mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-18 13:15:08 +00:00
Commit from m3o/m3o action
This commit is contained in:
@@ -11,11 +11,10 @@ import (
|
||||
func main() {
|
||||
translateService := translate.NewTranslateService(os.Getenv("M3O_API_TOKEN"))
|
||||
rsp, err := translateService.Text(&translate.TextRequest{
|
||||
Contents: []string{"pen", "pencil"},
|
||||
Format: "text",
|
||||
Model: "nmt",
|
||||
Source: "en",
|
||||
Target: "zh",
|
||||
Format: "text",
|
||||
Model: "nmt",
|
||||
Source: "en",
|
||||
Target: "zh",
|
||||
})
|
||||
fmt.Println(rsp, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user