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

@@ -25,8 +25,7 @@ import(
func TranslateString() {
translateService := translate.NewTranslateService(os.Getenv("M3O_API_TOKEN"))
rsp, err := translateService.Text(&translate.TextRequest{
Contents: []string{"pen", "pencil"},
Format: "text",
Format: "text",
Model: "nmt",
Source: "en",
Target: "zh",