Localize Apply
localize_applyMerge translated UI strings into the app's String Catalog for spec locales; ignores unsupported locales and reports missing keys.
Instructions
Merge translations into the in-app String Catalog for the spec's app locales.
Use when: after translating UI strings; locales not in spec locales.app are ignored. Not for: store listing copy (use metadata_render_listing / deliver_metadata). Returns: {ok, locales, keys, missing}.
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": {
"app_dir": "<app_dir>",
"translations": "<translations>"
},
"name": "localize_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_dir | Yes | Absolute path to the app project directory (contains app.spec.json), e.g. /Users/me/Apps/MyApp. | |
| translations | Yes | Map {english_key: {locale: translated value}} for the String Catalog. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||