# Brand translations

Translate brand names, slugs, descriptions, and SEO fields through the Store API.

Translate a brand's `name`, `slug`, `description`, `seo_title`, and `seo_description` for an enabled non-default locale. GET returns stored translations and omits untranslated fields; hosted brand pages show the base-language value for each omitted field. PUT changes only supplied fields, and an empty string clears a translation. The source field must contain text before it can be translated. `is_outdated` marks a translation whose source changed, but the stored translation remains in use until updated or cleared. Translated names and slugs must be unique within the locale among the names and slugs brands show there (a translation, or the source value where there is none); a duplicate returns the brand duplicate code with `details.existing_id`. A translated slug changes the localized page path.

## Get brand translation

`GET /api/2025-01/brands/{id}/translations/{locale}`

Returns stored translations for one brand and locale. Each returned field includes `is_outdated`. Fields without a translation in this locale are omitted from the response. An omitted field is not empty: shoppers see the store's base-language value, which the resource's own GET endpoint returns.

Scope: `read_products + read_translations`

```curl
curl 'https://api-store.tringify.com/api/2025-01/brands/7/translations/fr' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "success": true,
  "data": {
    "fields": {
      "name": {
        "value": "Acme France",
        "is_outdated": false,
        "word_count": 2
      }
    }
  }
}
```

## Set brand translation

`PUT /api/2025-01/brands/{id}/translations/{locale}`

Only supplied fields change. Send an empty string to clear a field's translation. Fetch the translation to read saved values and metadata. Changing a translated `slug` redirects the brand's old address in that language to the new one: the first translated slug redirects the source slug's address in that language, a changed one redirects the previous translated slug, and clearing it redirects the translated address back to the source slug. Earlier redirects in that language are updated to point straight to the current address. These redirects are created however the translation is saved (this endpoint, the batch endpoint, a translation CSV or AI translation). When another brand later takes an address one of these redirects starts from, that redirect is removed and sends `redirects/delete`. A translated name and a translated slug must each be unique among the names and slugs of this type shown in that language (a translation, or the source value where there is none). A write waits at most 2 seconds for other translation writes of the same item or of a clashing name or slug (for example a translation CSV import writing the same language); writes of other items, types and languages never wait. A row or call that fails with `TRANSLATION_WRITE_BUSY` (HTTP 503) saved nothing: send it again after `error.details.retry_after_seconds` (the call's `Retry-After` header says the same). Every row or call either saved or reports an error; none is left in an unknown state.

Scope: `write_products + write_translations`

```curl
curl -X PUT 'https://api-store.tringify.com/api/2025-01/brands/7/translations/fr' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "translations": {
    "description": "Acme fabrique du matériel de plein air durable.",
    "name": "Acme France"
  }
}'
```

Response:

```json
{
  "success": true,
  "code": "TRANSLATION_SAVED",
  "message": "Translation saved."
}
```

## Batch get brand translations

`GET /api/2025-01/brands/translations/{locale}`

Returns one `resources` entry per requested brand ID. A brand without stored translations has an empty object. Fields without a translation in this locale are omitted from the response. An omitted field is not empty: shoppers see the store's base-language value, which the resource's own GET endpoint returns.

Scope: `read_products + read_translations`

```curl
curl 'https://api-store.tringify.com/api/2025-01/brands/translations/fr?ids=7,11' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "success": true,
  "data": {
    "resources": {
      "brand:7": {
        "name": {
          "value": "Acme France",
          "is_outdated": false,
          "word_count": 2
        }
      },
      "brand:11": {}
    }
  }
}
```

## Batch set brand translations

`PUT /api/2025-01/brands/translations`

Each row is one brand in one language: `id`, `locale` (any enabled non-default store locale) and `fields`. Rows for several languages can be mixed in one call; send at most 100 rows (one row = one brand in one locale) and at most one row per brand and locale. Each row is saved on its own: a failing row never stops the others. Empty values clear the matching field translation; omitted fields keep their translation. Every row is validated exactly like the single translation endpoint. The response has `totals` (`rows`, `saved`, `failed`) and one `results` entry per row in request order: `{id, locale, status}` with status `saved` or `failed`. A failed row carries the full `error` (code, message, details); its codes are the single endpoint's codes plus `TRANSLATION_ROW_DUPLICATE`. A top-level `code` and `message` give the outcome: `TRANSLATIONS_SAVED` (200, every row saved), `TRANSLATIONS_PARTIALLY_SAVED` (200, `success: true`; the message counts saved and failed rows and names the failure reasons, e.g. "2 saved, 1 failed. No source text found for the requested fields (description).") `TRANSLATIONS_NOT_SAVED_RETRY` (503 with a `Retry-After` header, `success: false`; no row saved because every row failed only with `TRANSLATION_WRITE_BUSY`, so the same call can be sent again after `error.details.retry_after_seconds`) or `TRANSLATIONS_NOT_SAVED` (422, `success: false`; no row saved and at least one row failed for another reason). Both carry the same `totals` and `results` in `error.details`. With an `Idempotency-Key`, repeating the same request re-applies nothing that already saved and retries the failed rows. A translated name and a translated slug must each be unique among the names and slugs of this type shown in that language (a translation, or the source value where there is none). Of two rows of one call that would share a value in one language, the earlier row keeps it and the later row fails with the duplicate code and `details.existing_id`, the earlier row's id. Rows are saved independently, each checked against the values stored when it is saved, so two rows that swap values (one row takes the value another row's resource holds, and that row takes a different one) fail: the row that takes a held value is refused with the duplicate code. To swap them, import a translation CSV with both rows (`POST /imports`, type `translations`): an import checks consecutive rows together, so a swap is accepted when its two rows sit next to each other in the file. Changing a translated `slug` redirects the brand's old address in that language to the new one: the first translated slug redirects the source slug's address in that language, a changed one redirects the previous translated slug, and clearing it redirects the translated address back to the source slug. Earlier redirects in that language are updated to point straight to the current address. These redirects are created however the translation is saved (this endpoint, the batch endpoint, a translation CSV or AI translation). When another brand later takes an address one of these redirects starts from, that redirect is removed and sends `redirects/delete`. A write waits at most 2 seconds for other translation writes of the same item or of a clashing name or slug (for example a translation CSV import writing the same language); writes of other items, types and languages never wait. A row or call that fails with `TRANSLATION_WRITE_BUSY` (HTTP 503) saved nothing: send it again after `error.details.retry_after_seconds` (the call's `Retry-After` header says the same). Every row or call either saved or reports an error; none is left in an unknown state.

Scope: `write_products + write_translations`

```curl
curl -X PUT 'https://api-store.tringify.com/api/2025-01/brands/translations' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "translations": [
    {
      "fields": {
        "name": "Acme France"
      },
      "id": 7,
      "locale": "fr"
    },
    {
      "fields": {
        "name": "Acme Deutschland"
      },
      "id": 7,
      "locale": "de"
    },
    {
      "fields": {
        "name": "Acme Brasil"
      },
      "id": 7,
      "locale": "pt-BR"
    }
  ]
}'
```

Response:

```json
{
  "code": "TRANSLATIONS_PARTIALLY_SAVED",
  "data": {
    "results": [
      {
        "id": 7,
        "locale": "fr",
        "status": "saved"
      },
      {
        "id": 7,
        "locale": "de",
        "status": "saved"
      },
      {
        "error": {
          "code": "TRANSLATION_LOCALE_NOT_ENABLED",
          "message": "Locale pt-BR is not enabled for this store."
        },
        "id": 7,
        "locale": "pt-BR",
        "status": "failed"
      }
    ],
    "totals": {
      "failed": 1,
      "rows": 3,
      "saved": 2
    }
  },
  "message": "2 saved, 1 failed. Locale pt-BR is not enabled for this store.",
  "success": true
}
```

## Get a brand metafield translation

`GET /api/2025-01/brands/{id}/metafields/{namespace}/{key}/translations/{locale}`

Returns the stored translation for a translatable metafield the token can read, in an enabled non-default language. Reading a value translation requires both the owner read scope and read_translations. Setting or clearing it requires both the owner write scope and write_translations; an empty value does not bypass either scope. Staff permissions and hosted MCP grants likewise require owner access plus settings.languages access at the matching read/write level. Fields without a translation in this locale are omitted from the response. An omitted field is not empty: shoppers see the store's base-language value, which the resource's own GET endpoint returns.

Scope: `read_products + read_translations`

```curl
curl 'https://api-store.tringify.com/api/2025-01/brands/7/metafields/details/origin/translations/fr' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "success": true,
  "data": {
    "fields": {
      "value": {
        "value": "Séoul",
        "is_outdated": false,
        "word_count": 1
      }
    }
  }
}
```

## Set a brand metafield translation

`PUT /api/2025-01/brands/{id}/metafields/{namespace}/{key}/translations/{locale}`

Sets this metafield's translation in an enabled non-default locale without changing the source value. Reading a value translation requires both the owner read scope and read_translations. Setting or clearing it requires both the owner write scope and write_translations; an empty value does not bypass either scope. Staff permissions and hosted MCP grants likewise require owner access plus settings.languages access at the matching read/write level. `value` is required. Send an empty string to clear it. For `list.string`, send a JSON-encoded string array with one item per source item, in the same order.

Scope: `write_products + write_translations`

```curl
curl -X PUT 'https://api-store.tringify.com/api/2025-01/brands/7/metafields/details/origin/translations/fr' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "value": "Séoul"
}'
```

Response:

```json
{
  "success": true,
  "code": "TRANSLATION_SAVED",
  "message": "Translation saved."
}
```

## Webhook events

Subscribe to these events when your integration mirrors localized brands. Update and clear events identify the locale and changed fields. One write can emit both events when it sets some fields and clears others. No event announces that translations became outdated. A translation is outdated (`is_outdated: true`) once its source field changes, and the brand update event reports that change, so after an update that changes a translated field, treat that field's stored translations in every locale as outdated until they are updated or cleared.

## Brand translations updated

Event: `brands/translations/update` · App scope: `read_products, read_translations` · Staff permission: `products:write`

Fired when a brand's translations are added or updated for a locale. Payload carries only the fields that changed. Translation writes do not fire brands/update.

```json
{
  "brand": {
    "created_at": "2026-06-09T12:00:00-04:00",
    "description": "Acme makes durable outdoor gear.",
    "id": 7,
    "image_cdn_url": "https://assets.tringify.com/74e634ea-84ec-43b8-b66b-986214c2c5a3/upload/8f2a1c2b-9d4e-4a56-b789-0123456789ab.jpg",
    "image_id": "8f2a1c2b-9d4e-4a56-b789-0123456789ab",
    "image_url": "https://store.example.com/uploads/8f2a1c2b-9d4e-4a56-b789-0123456789ab",
    "name": "Acme",
    "product_count": 12,
    "seo_description": "Shop Acme outdoor gear.",
    "seo_title": "Acme Outdoor Gear",
    "slug": "acme",
    "template_handle": "default_brand",
    "translations_updated_at": "2026-06-10T09:30:00-04:00",
    "updated_at": "2026-06-10T09:30:00-04:00"
  },
  "locale": "fr",
  "translation": {
    "description": "Acme fabrique du matériel de plein air durable.",
    "name": "Acme France",
    "seo_description": "Découvrez l’équipement de plein air Acme.",
    "seo_title": "Équipement de plein air Acme",
    "slug": "acme-france"
  },
  "updated_at": "2026-06-10T09:30:00-04:00"
}
```

## Brand translations deleted

Event: `brands/translations/delete` · App scope: `read_products, read_translations` · Staff permission: `products:write`

Fired when a brand's translations are cleared for one or more fields in a locale, including when the brand itself is deleted. A write that updates some translated fields and clears others fires both translation events. Translation writes do not fire `brands/update`.

```json
{
  "brand": {
    "created_at": "2026-06-09T12:00:00-04:00",
    "description": "Acme makes durable outdoor gear.",
    "id": 7,
    "image_cdn_url": "https://assets.tringify.com/74e634ea-84ec-43b8-b66b-986214c2c5a3/upload/8f2a1c2b-9d4e-4a56-b789-0123456789ab.jpg",
    "image_id": "8f2a1c2b-9d4e-4a56-b789-0123456789ab",
    "image_url": "https://store.example.com/uploads/8f2a1c2b-9d4e-4a56-b789-0123456789ab",
    "name": "Acme",
    "product_count": 12,
    "seo_description": "Shop Acme outdoor gear.",
    "seo_title": "Acme Outdoor Gear",
    "slug": "acme",
    "template_handle": "default_brand",
    "translations_updated_at": "2026-06-10T09:30:00-04:00",
    "updated_at": "2026-06-10T09:30:00-04:00"
  },
  "locale": "fr",
  "translation": {
    "description": "",
    "name": "",
    "seo_description": "",
    "seo_title": "",
    "slug": ""
  },
  "updated_at": "2026-06-10T09:30:00-04:00"
}
```

## Brand metafield translations updated

Event: `brand_metafields/translations/update` · App scope: `read_products, read_translations` · Staff permission: `products:write`

Fired when a brand metafield's translation is added or updated for a locale. `metafield` identifies the metafield by its owner and definition (ids, namespace, key, name, type); it is not the full metafield or its owner. Read them from the Store API for other fields.

```json
{
  "locale": "fr",
  "metafield": {
    "app_access": "shared",
    "app_id": "d6a26466-7903-4e2f-8fd7-7c59f3c8cd9a",
    "brand_id": 7,
    "brand_name": "Acme",
    "brand_slug": "acme",
    "definition_id": "6b56de32-3f8c-4a25-a4cb-2d217ad7a8aa",
    "key": "material",
    "merchant_access": "read_write",
    "name": "Material",
    "namespace": "app:catalog-sync.details",
    "type": "string"
  },
  "translation": {
    "value": "Coton biologique"
  },
  "updated_at": "2026-06-10T09:30:00-04:00"
}
```

## Brand metafield translations deleted

Event: `brand_metafields/translations/delete` · App scope: `read_products, read_translations` · Staff permission: `products:write`

Fired when a brand metafield's translation is cleared for a locale, including during value or brand deletion. The translated value is an empty string. `metafield` identifies the metafield by its owner and definition (ids, namespace, key, name, type); it is not the full metafield or its owner. Read them from the Store API for other fields.

```json
{
  "locale": "fr",
  "metafield": {
    "app_access": "shared",
    "app_id": "d6a26466-7903-4e2f-8fd7-7c59f3c8cd9a",
    "brand_id": 7,
    "brand_name": "Acme",
    "brand_slug": "acme",
    "definition_id": "6b56de32-3f8c-4a25-a4cb-2d217ad7a8aa",
    "key": "material",
    "merchant_access": "read_write",
    "name": "Material",
    "namespace": "app:catalog-sync.details",
    "type": "string"
  },
  "translation": {
    "value": ""
  },
  "updated_at": "2026-06-10T09:30:00-04:00"
}
```

