register_translation
Create or update a translation for a Shopify resource by specifying the resource ID, locale, and key-value pair, enabling multi-language storefront support.
Instructions
Create or update a translation for a resource
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resourceId": "<resourceId>",
"locale": "<locale>",
"key": "<key>",
"value": "<value>"
},
"name": "register_translation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Translatable content key | |
| value | Yes | Translated value | |
| locale | Yes | ISO code of the locale (e.g., 'fr', 'es', 'de') | |
| marketId | No | Market ID for market-specific translation | |
| resourceId | Yes | Resource ID to translate (e.g., 'gid://shopify/Product/123456789') |