Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-12-10 10:32:30 +00:00
parent d31537fab5
commit fbd3cc92b8
24 changed files with 1043 additions and 1045 deletions

View File

@@ -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)
}