Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-12-10 11:19:12 +00:00
parent f55142f3fd
commit d792a8407f
21 changed files with 957 additions and 912 deletions

View File

@@ -16,7 +16,7 @@ type TranslateService struct {
client *client.Client
}
// TextRequest is the basic edition request
// Basic text translation
func (t *TranslateService) Text(request *TextRequest) (*TextResponse, error) {
rsp := &TextResponse{}
@@ -41,6 +41,7 @@ type TextRequest struct {
}
type TextResponse struct {
// The translated text
Translation *Translation `json:"translation"`
}