Headers
The publisher token.
Query Parameters
The locale code. Both ISO-639 language code and ISO-3166 country code formats are supported.
Example:
"en-US"
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…"
}
]
}
Retrieves a list of all translatable fields and their translations.
Use the locale parameter to return translations for a specific locale. If a field doesn’t have a translation for the requested locale, the value defaults to English, en.
If no locale is specified, all translations are returned, including the default English values.
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…"
}
]
}
The publisher token.
The locale code. Both ISO-639 language code and ISO-3166 country code formats are supported.
"en-US"
Translations retrieved successfully.
Was this page helpful?