Skip to content

Commit 34c9e8c

Browse files
committed
docs: update locale detection API version
1 parent 6fdeece commit 34c9e8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

language_detection.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ import (
99
"net/url"
1010
)
1111

12-
// Locales - https://wit.ai/docs/http/20170307#get__language_link
12+
// Locales - https://wit.ai/docs/http/20200513#get__language_link
1313
type Locales struct {
1414
DetectedLocales []Locale `json:"detected_locales"`
1515
}
1616

17-
// Locale - https://wit.ai/docs/http/20170307#get__language_link
17+
// Locale - https://wit.ai/docs/http/20200513#get__language_link
1818
type Locale struct {
1919
Locale string `json:"locale"`
2020
Confidence float64 `json:"confidence"`
2121
}
2222

23-
// Detect - returns the detected languages from query - https://wit.ai/docs/http/20170307#get__language_link
23+
// Detect - returns the detected languages from query - https://wit.ai/docs/http/20200513#get__language_link
2424
func (c *Client) Detect(text string) (*Locales, error) {
2525
resp, err := c.request(http.MethodGet, fmt.Sprintf("/language?q=%s", url.PathEscape(text)), "application/json", nil)
2626
if err != nil {

0 commit comments

Comments
 (0)