Skip to main content
GET
/
v1
/
translations
  curl -X GET \
  'https://api.appcharge.com/v1/translations' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'x-publisher-token: <x-publisher-token>' \
{
  "dynamicTranslations": [
    {
      "type": "product",
      "externalId": "SKU-12345",
      "field": "display_name",
      "locale": "es-ES",
      "value": "Espada legendaria"
    },
    {
      "type": "product",
      "externalId": "SKU-12345",
      "field": "display_name",
      "locale": "en",
      "value": "Legendary Sword"
    },
    {
      "type": "product",
      "externalId": "SKU-12345",
      "field": "display_name",
      "locale": "pl",
      "value": "Legendarny Miecz"
    },
    {
      "type": "offer_design",
      "externalId": "OD-987",
      "field": "title",
      "locale": "es-ES",
      "value": "Oferta de Verano"
    },
    {
      "type": "offer_design",
      "externalId": "OD-987",
      "field": "title",
      "locale": "en",
      "value": "Summer Offer"
    },
    {
      "type": "offer_design",
      "externalId": "OD-987",
      "field": "title",
      "locale": "pl",
      "value": "Letnia Oferta"
    }
  ],
  "staticTranslations": [
    {
      "key": "checkout.pay_button",
      "locale": "es-ES",
      "value": "Pagar ahora"
    },
    {
      "key": "checkout.pay_button",
      "locale": "en",
      "value": "Pay Now"
    },
    {
      "key": "checkout.pay_button",
      "locale": "pl",
      "value": "Zapłać teraz"
    },
    {
      "key": "ui.loading",
      "locale": "es-ES",
      "value": "Cargando…"
    },
    {
      "key": "ui.loading",
      "locale": "en",
      "value": "Loading…"
    },
    {
      "key": "ui.loading",
      "locale": "pl",
      "value": "Ładowanie…"
    }
  ]
}
  curl -X GET \
  'https://api.appcharge.com/v1/translations' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'x-publisher-token: <x-publisher-token>' \
{
  "dynamicTranslations": [
    {
      "type": "product",
      "externalId": "SKU-12345",
      "field": "display_name",
      "locale": "es-ES",
      "value": "Espada legendaria"
    },
    {
      "type": "product",
      "externalId": "SKU-12345",
      "field": "display_name",
      "locale": "en",
      "value": "Legendary Sword"
    },
    {
      "type": "product",
      "externalId": "SKU-12345",
      "field": "display_name",
      "locale": "pl",
      "value": "Legendarny Miecz"
    },
    {
      "type": "offer_design",
      "externalId": "OD-987",
      "field": "title",
      "locale": "es-ES",
      "value": "Oferta de Verano"
    },
    {
      "type": "offer_design",
      "externalId": "OD-987",
      "field": "title",
      "locale": "en",
      "value": "Summer Offer"
    },
    {
      "type": "offer_design",
      "externalId": "OD-987",
      "field": "title",
      "locale": "pl",
      "value": "Letnia Oferta"
    }
  ],
  "staticTranslations": [
    {
      "key": "checkout.pay_button",
      "locale": "es-ES",
      "value": "Pagar ahora"
    },
    {
      "key": "checkout.pay_button",
      "locale": "en",
      "value": "Pay Now"
    },
    {
      "key": "checkout.pay_button",
      "locale": "pl",
      "value": "Zapłać teraz"
    },
    {
      "key": "ui.loading",
      "locale": "es-ES",
      "value": "Cargando…"
    },
    {
      "key": "ui.loading",
      "locale": "en",
      "value": "Loading…"
    },
    {
      "key": "ui.loading",
      "locale": "pl",
      "value": "Ładowanie…"
    }
  ]
}

Headers

x-publisher-token
string
required

The publisher token.

Query Parameters

locale
string

The locale code. Both ISO-639 language code and ISO-3166 country code formats are supported.

Example:

"en-US"

Response

Translations retrieved successfully.

dynamicTranslations
object[]

A list of translations for dynamic entities you define such as offer and product names.

staticTranslations
object[]

A list of translations for static UI elements such as button labels and headers.

I