Browse the API docs

Translations

The store's content in its other languages: product, collection, page and menu text shown to shoppers who switch language.

Endpoints#

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.

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#

GET/translations.jsonread_translations

Every translated field in one language, oldest first. Filter by resource type and resources to sync them.

Query parameters
ParameterDescription
localeRequired. One of the store's languages other than its default, e.g. en.
resource_typeOnly this type: product, collection, page, article, blog, menu_item, policy, metaobject, shop.
resource_idsComma-separated ids of that type (up to 250); needs resource_type.
updated_at_min / updated_at_maxISO 8601 bounds on last change; use for incremental sync.
limit, page_infoPagination (1–250 per page, default 50) through the Link header.
Request
curl "https://store.weftgrid.com/api/admin/2026-10/translations.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{ "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#

GET/translations/{resource_type}/{resource_id}.jsonread_translations

One 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).

Query parameters
ParameterDescription
localeRequired. One of the store's other languages, e.g. en.
Request
curl "https://store.weftgrid.com/api/admin/2026-10/translations/$RESOURCE_TYPE/$RESOURCE_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{
  "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#

PUT/translations/{resource_type}/{resource_id}.jsonwrite_translations

Sets 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).

Request body
{
  "locale": "en",
  "translations": {
    "title": "Turquoise lawn suit — three-piece",
    "description": "<p>Soft lawn, hand-printed with wooden blocks.</p>",
    "seo_title": ""
  }
}
Request with curl
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 responseShow
{
  "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#

GET/translatable_resources/{resource_type}.jsonread_translations

The 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.

Query parameters
ParameterDescription
localeOptional. Include the translations in this language.
idsComma-separated resource ids (up to 250).
limit, page_info, since_idPagination by id (1–250 per page, default 50) through the Link header.
Request
curl "https://store.weftgrid.com/api/admin/2026-10/translatable_resources/$RESOURCE_TYPE.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{
  "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" }
    ]
  }]
}