Skip to main content

Overview

The Translator service translates product catalog data (titles, descriptions, options) from a source language to one or more target languages.

API Endpoint

POST /loopos_ai_translator

Request

{
  "source_locale": "en",
  "target_locales": ["de", "es"],
  "context": "Catalog",
  "data": {
    "product_6_name": "Galaxy S23",
    "product_6_description": "Beautiful description",
    "option_type_2_name": "Color",
    "option_value_3_name": "Black"
  }
}

Response

{
  "translations": {
    "context": "Catalog",
    "data": {
      "de": {
        "product_6_name": "Galaxy S23",
        "product_6_description": "Schöne Beschreibung",
        "option_type_2_name": "Farbe",
        "option_value_3_name": "Schwarz"
      },
      "es": {
        "product_6_name": "Galaxy S23",
        "product_6_description": "Hermosa descripción",
        "option_type_2_name": "Color",
        "option_value_3_name": "Negro"
      }
    }
  }
}