Translations
The store's content in its other languages: product, collection, page and menu text shown to shoppers who switch language.
Endpoints#
- GET
/translations.jsonList translations - GET
/translations/{resource_type}/{resource_id}.jsonGet a resource's translations - PUT
/translations/{resource_type}/{resource_id}.jsonSet a resource's translations - GET
/translatable_resources/{resource_type}.jsonList translatable resources
Paths are relative to https://store.weftgrid.com/api/admin/2026-10. The examples read the token from $STORELOOM_TOKEN and ids from variables like $ORDER_ID.
The translation object#
What the endpoints below return for one translation.
{
"resource_type": "product",
"resource_id": "cm2product01",
"locale": "en",
"translations": {
"title": "Turquoise lawn suit — three-piece",
"description": "<p>Soft lawn, hand-printed with wooden blocks.</p>",
"option_name.سائز": "Size",
"option_value.فیروزی": "Turquoise"
},
"updated_at": "2026-10-23T09:30:00.000Z"
}List translations#
/translations.jsonread_translationsEvery translated field in one language, oldest first. Filter by resource type and resources to sync them.
| Parameter | Description |
|---|---|
locale | Required. One of the store's languages other than its default, e.g. en. |
resource_type | Only this type: product, collection, page, article, blog, menu_item, policy, metaobject, shop. |
resource_ids | Comma-separated ids of that type (up to 250); needs resource_type. |
updated_at_min / updated_at_max | ISO 8601 bounds on last change; use for incremental sync. |
limit, page_info | Pagination (1–250 per page, default 50) through the Link header. |
curl "https://store.weftgrid.com/api/admin/2026-10/translations.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{ "translations": [{ "id": "cm2tr01", "locale": "en", "resource_type": "product", "resource_id": "cm2product01", "key": "title", "value": "Turquoise lawn suit — three-piece", "updated_at": "2026-10-23T09:30:00.000Z" }] }Get a resource's translations#
/translations/{resource_type}/{resource_id}.jsonread_translationsOne resource's translated fields in one language. Fields without a translation are left out: shoppers see the original there. Keys are the fields GET /translatable_resources/{resource_type}.json lists: title, description, seo_title, seo_description, product_type; option_name.<option name> and option_value.<value> for product options (variant titles follow from the values); body and excerpt for pages and blog posts; announcement, footer_text, cod_instructions and section.<section id>.<setting> for the store's theme (resource_type shop, resource_id the shop's id).
| Parameter | Description |
|---|---|
locale | Required. One of the store's other languages, e.g. en. |
curl "https://store.weftgrid.com/api/admin/2026-10/translations/$RESOURCE_TYPE/$RESOURCE_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{
"translation": {
"resource_type": "product",
"resource_id": "cm2product01",
"locale": "en",
"translations": {
"title": "Turquoise lawn suit — three-piece",
"description": "<p>Soft lawn, hand-printed with wooden blocks.</p>",
"option_name.سائز": "Size",
"option_value.فیروزی": "Turquoise"
},
"updated_at": "2026-10-23T09:30:00.000Z"
}
}Set a resource's translations#
/translations/{resource_type}/{resource_id}.jsonwrite_translationsSets translated fields in one of the store's other languages; fields you leave out keep their translation, and an empty string removes one. HTML fields are cleaned up like the rest of the store's rich text. Nothing is saved when a field is invalid: the 422 names it. Keys are the fields GET /translatable_resources/{resource_type}.json lists: title, description, seo_title, seo_description, product_type; option_name.<option name> and option_value.<value> for product options (variant titles follow from the values); body and excerpt for pages and blog posts; announcement, footer_text, cod_instructions and section.<section id>.<setting> for the store's theme (resource_type shop, resource_id the shop's id).
{
"locale": "en",
"translations": {
"title": "Turquoise lawn suit — three-piece",
"description": "<p>Soft lawn, hand-printed with wooden blocks.</p>",
"seo_title": ""
}
}curl -X PUT "https://store.weftgrid.com/api/admin/2026-10/translations/$RESOURCE_TYPE/$RESOURCE_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locale": "en",
"translations": {
"title": "Turquoise lawn suit — three-piece",
"description": "<p>Soft lawn, hand-printed with wooden blocks.</p>",
"seo_title": ""
}
}'Example responseShowHide
{
"translation": {
"resource_type": "product",
"resource_id": "cm2product01",
"locale": "en",
"translations": {
"title": "Turquoise lawn suit — three-piece",
"description": "<p>Soft lawn, hand-printed with wooden blocks.</p>",
"option_name.سائز": "Size",
"option_value.فیروزی": "Turquoise"
},
"updated_at": "2026-10-23T09:30:00.000Z"
}
}List translatable resources#
/translatable_resources/{resource_type}.jsonread_translationsThe store's resources of one type with each field that can be translated and its original text (in the store's default language). Empty fields aren't listed. With locale, each field also carries its current translation (null when there's none). The shop type has one resource: the store's theme and storefront texts.
| Parameter | Description |
|---|---|
locale | Optional. Include the translations in this language. |
ids | Comma-separated resource ids (up to 250). |
limit, page_info, since_id | Pagination by id (1–250 per page, default 50) through the Link header. |
curl "https://store.weftgrid.com/api/admin/2026-10/translatable_resources/$RESOURCE_TYPE.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{
"translatable_resources": [{
"resource_type": "product",
"resource_id": "cm2product01",
"title": "فیروزی لان سوٹ — تین پیس",
"storefront_path": "/products/firozi-lawn-suit",
"fields": [
{ "key": "title", "label": "Title", "type": "single_line_text", "max_length": 255, "original": "فیروزی لان سوٹ — تین پیس", "translation": "Turquoise lawn suit — three-piece" },
{ "key": "option_name.سائز", "label": "Option name", "type": "single_line_text", "max_length": 40, "original": "سائز", "translation": "Size" }
]
}]
}