# Google Translate

## POST /google-translate/v1/detect

> Use the Google Translate API to detect the language for a given input text

```json
{"openapi":"3.1.0","info":{"title":"auor.io","version":"1.0.0"},"servers":[{"url":"https://api.auor.io","description":"auor.io (Oreo) Production server"}],"paths":{"/google-translate/v1/detect":{"post":{"operationId":"languageDetectV1","summary":"Use the Google Translate API to detect the language for a given input text","tags":["Google Translate"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"description":"The text to translate.","type":"string"}},"required":["text"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"./schemas/google-translate/v1/detect/output.json"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"402":{"description":"Payment required","content":{"application/json":{}}}}}}},"components":{"schemas":{"ValidationError":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}},"required":["errors"]}}}}
```

## GET /google-translate/v1/languages

> Use the Google Translate API to list the available languages for translation and language detection

```json
{"openapi":"3.1.0","info":{"title":"auor.io","version":"1.0.0"},"servers":[{"url":"https://api.auor.io","description":"auor.io (Oreo) Production server"}],"paths":{"/google-translate/v1/languages":{"get":{"operationId":"translateLanguagesV1","summary":"Use the Google Translate API to list the available languages for translation and language detection","tags":["Google Translate"],"parameters":[{"name":"Accept-Language","in":"header","description":"The language to return the results in","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"./schemas/google-translate/v1/languages/output.json"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"402":{"description":"Payment required","content":{"application/json":{}}}}}}},"components":{"schemas":{"ValidationError":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}},"required":["errors"]}}}}
```

## POST /google-translate/v1/translate

> Use the Google Translate API to translate text from one language to another

```json
{"openapi":"3.1.0","info":{"title":"auor.io","version":"1.0.0"},"servers":[{"url":"https://api.auor.io","description":"auor.io (Oreo) Production server"}],"paths":{"/google-translate/v1/translate":{"post":{"operationId":"translateV1","summary":"Use the Google Translate API to translate text from one language to another","tags":["Google Translate"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sourceLanguage":{"description":"The language to translate from. Will be automatically detected if not supplied","type":"string"},"targetLanguage":{"description":"The language to translate to.","type":"string"},"text":{"description":"The text to translate.","type":"string"}},"required":["targetLanguage","text"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"./schemas/google-translate/v1/translate/output.json"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"402":{"description":"Payment required","content":{"application/json":{}}}}}}},"components":{"schemas":{"ValidationError":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}},"required":["errors"]}}}}
```
