curl -X POST \
'https://api.appcharge.com/v1/translations' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
--data '{
"staticTranslations": [
{
"key": "ui.loading",
"locale": "es-ES",
"value": "Cargando…"
}
],
"dynamicTranslations": [
{
"type": "product",
"externalId": "SKU-12345",
"field": "display_name",
"locale": "es-ES",
"value": "Espada legendaria"
}
]
}'
{
"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-US",
"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-US",
"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-US",
"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-US",
"value": "Loading…"
},
{
"key": "ui.loading",
"locale": "pl",
"value": "Ładowanie…"
}
]
}
Sets translation content for translatable fields.
Use this API to add new translations or update existing ones as needed.
The request payload has a maximum size of 100 KB.
curl -X POST \
'https://api.appcharge.com/v1/translations' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
--data '{
"staticTranslations": [
{
"key": "ui.loading",
"locale": "es-ES",
"value": "Cargando…"
}
],
"dynamicTranslations": [
{
"type": "product",
"externalId": "SKU-12345",
"field": "display_name",
"locale": "es-ES",
"value": "Espada legendaria"
}
]
}'
{
"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-US",
"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-US",
"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-US",
"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-US",
"value": "Loading…"
},
{
"key": "ui.loading",
"locale": "pl",
"value": "Ładowanie…"
}
]
}
curl -X POST \
'https://api.appcharge.com/v1/translations' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
--data '{
"staticTranslations": [
{
"key": "ui.loading",
"locale": "es-ES",
"value": "Cargando…"
}
],
"dynamicTranslations": [
{
"type": "product",
"externalId": "SKU-12345",
"field": "display_name",
"locale": "es-ES",
"value": "Espada legendaria"
}
]
}'
{
"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-US",
"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-US",
"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-US",
"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-US",
"value": "Loading…"
},
{
"key": "ui.loading",
"locale": "pl",
"value": "Ładowanie…"
}
]
}
The publisher token
A list of translations for dynamic entities you define such as offer and product names.
Show child attributes
Entity type. Values include: 'offer', 'offer_design', 'product', 'section', 'builder', 'ribbon'
"section"
The ID as defined in the Publisher Dashboard.
"my-bundle-1"
The entity field the translation applies to. Values include: 'display_name', 'description', 'title', 'text', 'prefix', 'suffix'
"description"
The locale code. Both ISO-639 language code and ISO-3166 country code formats are supported.
"es-ES"
The translation text for the specified field and locale.
"Hola!"
A list of translations for static UI elements such as button labels and headers.
Show child attributes
The key identifier for the static translation.
"checkout.pay_button"
The locale code. Both ISO-639 language code and ISO-3166 country code formats are supported.
"es-ES"
The translation value associated with the key and locale.
"Zapłać teraz"
Translations retrieved successfully.
A list of translations for dynamic entities you define such as offer and product names.
Show child attributes
Entity type. Values include: 'offer', 'offer_design', 'product', 'section', 'builder', 'ribbon'
"section"
The ID as defined in the Publisher Dashboard.
"my-bundle-1"
The entity field the translation applies to. Values include: 'display_name', 'description', 'title', 'text', 'prefix', 'suffix'
"description"
The locale code. Both ISO-639 language code and ISO-3166 country code formats are supported.
"es-ES"
The translation text for the specified field and locale.
"Hola!"
A list of translations for static UI elements such as button labels and headers.
Show child attributes
The key identifier for the static translation.
"checkout.pay_button"
The locale code. Both ISO-639 language code and ISO-3166 country code formats are supported.
"es-ES"
The translation value associated with the key and locale.
"Zapłać teraz"
Was this page helpful?