API Route: Locale
Formatting requests
- You can use cURL, Postman, and python or javascript libraries, or any other method supported by REST APIs.
- The payload format is JSON.
- You must authenticate every request with a
x-api-key
header.
Endpoints in this page
Detect Locale
Detects the locale (language) of a piece of content.
POST https://agw.golinguist.com/linguistnow/resources/locale/detectLocale | ||
Request Parameters | ||
Field | Type | Description |
translationType | string | Type of translation vendor to use for language detection Valid value: "machine" |
text | string | The text to use for the language detection |
Request Example (JSON) | ||
{ |
||
Response Parameters | ||
detectedLanguage | string | The language code for the language detected |
Responses | ||
Code 200 (Operation Successful) | ||
HTTP/1.1 200 OK |
||
Possible Error Codes | ||
400 | Bad Request | |
500 | Internal Server Error | |
501 | User Error | |
537 | Unexpected Error |
Comments
0 comments
Please sign in to leave a comment.