---
title: "Translate Text"
method: POST
path: "/cloud/v2/universes/{universe_id}:translateText"
tags: ["Generative AI"]
---

# Translate Text

`POST /cloud/v2/universes/{universe_id}:translateText`

Translates the provided text from one language to another.

## Path parameters

- `universe_id` string, required

## Request body

- TranslateTextRequest — Contains the text to be translated, the source language (optional), and a list of target languages for translation.
  - `text` string, required — The text to be translated.
  - `sourceLanguageCode` string — The IETF BCP-47 language code representing the language of the input text. If not provided, the system automatically detects the source language. Supported language codes include: - English (en-us) - French (fr-fr) - Vietnamese (vi-vn) - Thai (th-th) - Turkish (tr-tr) - Russian (ru-ru) - Spanish (es-es) - Portuguese (pt-br) - Korean (ko-kr) - Japanese (ja-jp) - Chinese Simplified (zh-cn) - Chinese Traditional (zh-tw) - German (de-de) - Polish (pl-pl) - Italian (it-it) - Indonesian (id-id)
  - `targetLanguageCodes` string[] — A list of target language codes in IETF BCP-47 format for translation. Supported language codes include: - English (en-us) - French (fr-fr) - Vietnamese (vi-vn) - Thai (th-th) - Turkish (tr-tr) - Russian (ru-ru) - Spanish (es-es) - Portuguese (pt-br) - Korean (ko-kr) - Japanese (ja-jp) - Chinese Simplified (zh-cn) - Chinese Traditional (zh-tw) - German (de-de) - Polish (pl-pl) - Italian (it-it) - Indonesian (id-id)

## Response `200`

OK

- TranslateTextResponse — Contains the detected or specified source language code and a map of requested translations, where each key is a language code and the value is the translated text.
  - `sourceLanguageCode` string — The IETF BCP-47 language code representing the detected or user-specified language of the source text.
  - `translations` object — A map containing the requested translations. The key is the IETF BCP-47 language code, and the value is the translated text for that language. The map contains all requested translations.

---

[API](https://skmtc.net/roblox/apis/roblox-api.md) · [All operations](https://skmtc.net/roblox/apis/roblox-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/roblox/roblox-api/revisions/80880b69892d/schema)
