Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
TranslateTextRequest — openapi
Contains the text to be translated, the source language (optional), and a list of target languages for translation.
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| text | string | true | The text to be translated. |
| sourceLanguageCode | string | false | 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 | array | false | 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) |
Complete Schema
{
"required": [
"text"
],
"type": "object",
"properties": {
"text": {
"example": "Hello",
"type": "string",
"description": "The text to be translated."
},
"sourceLanguageCode": {
"example": "en-us",
"type": "string",
"description": "The IETF BCP-47 language code representing the language of the\ninput text.\n\nIf not provided, the system automatically detects the\nsource language.\n\nSupported language codes include:\n\n- English (en-us)\n- French (fr-fr)\n- Vietnamese (vi-vn)\n- Thai (th-th)\n- Turkish (tr-tr)\n- Russian (ru-ru)\n- Spanish (es-es)\n- Portuguese (pt-br)\n- Korean (ko-kr)\n- Japanese (ja-jp)\n- Chinese Simplified (zh-cn)\n- Chinese Traditional (zh-tw)\n- German (de-de)\n- Polish (pl-pl)\n- Italian (it-it)\n- Indonesian (id-id)"
},
"targetLanguageCodes": {
"example": "fr-fr, vi-vn, ja-jp",
"type": "array",
"items": {
"type": "string"
},
"description": "A list of target language codes in IETF BCP-47 format for translation.\n\nSupported language codes include:\n\n- English (en-us)\n- French (fr-fr)\n- Vietnamese (vi-vn)\n- Thai (th-th)\n- Turkish (tr-tr)\n- Russian (ru-ru)\n- Spanish (es-es)\n- Portuguese (pt-br)\n- Korean (ko-kr)\n- Japanese (ja-jp)\n- Chinese Simplified (zh-cn)\n- Chinese Traditional (zh-tw)\n- German (de-de)\n- Polish (pl-pl)\n- Italian (it-it)\n- Indonesian (id-id)"
}
},
"description": "Contains the text to be translated, the source language (optional), and a\nlist of target languages for translation."
}