# RomanizeTextResponse

- [JSON representation](https://docs.cloud.google.com/translate/docs/reference/rest/v3/RomanizeTextResponse#SCHEMA_REPRESENTATION)
- [Romanization](https://docs.cloud.google.com/translate/docs/reference/rest/v3/RomanizeTextResponse#Romanization)
  - [JSON representation](https://docs.cloud.google.com/translate/docs/reference/rest/v3/RomanizeTextResponse#Romanization.SCHEMA_REPRESENTATION)

The response message for synchronous romanization.

| JSON representation |
|---|
| ``` { "romanizations": [ { object (`https://docs.cloud.google.com/translate/docs/reference/rest/v3/RomanizeTextResponse#Romanization`) } ] } ``` |

| Fields ||
|---|---|
| `romanizations[]` | ``object (`https://docs.cloud.google.com/translate/docs/reference/rest/v3/RomanizeTextResponse#Romanization`)`` Text romanization responses. This field has the same length as `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations/romanizeText#body.request_body.FIELDS.contents`. |

## Romanization

A single romanization response.

| JSON representation |
|---|
| ``` { "romanizedText": string, "detectedLanguageCode": string } ``` |

| Fields ||
|---|---|
| `romanizedText` | `string` Romanized text. If an error occurs during romanization, this field might be excluded from the response. |
| `detectedLanguageCode` | `string` The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty. |