mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
Commit from m3o/m3o action
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user