1 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

TranslateTextResponse — openapi

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.

Properties

NameTypeRequiredDescription
sourceLanguageCodestringfalseThe IETF BCP-47 language code representing the detected or user-specified language of the source text.
translationsobjectfalseA 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.

Complete Schema

{
  "type": "object",
  "properties": {
    "sourceLanguageCode": {
      "type": "string",
      "description": "The IETF BCP-47 language code representing the detected or user-specified\nlanguage of the source text."
    },
    "translations": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A map containing the requested translations. The key is the IETF BCP-47\nlanguage code, and the value is the translated text for that language.\nThe map contains all requested translations."
    }
  },
  "description": "Contains the detected or specified source language code and a map of\nrequested translations, where each key is a language code and the value is\nthe translated text."
}