HOC SiteDocumentation

get_localization

Load localizable translation fields for a design document (page, page component, site chrome, or email chrome). Default missingOnly=true returns gaps and sets truncated. missingOnly=false returns every field. Empty strings are omitted unless includeEmpty is true. keys, blockId, and locales narrow the list. Use this for translations only; use save_page / save_chrome / save_component for layout and structure.

get_localization · Group: design

Inputs

websiteId

required

target

required — page | page-component | chrome-header | chrome-footer | email-chrome-header | email-chrome-footer

pageId

optional — Required when target is page

componentId

optional — Required when target is page-component

keys

optional — Localization keys, as an array or a comma-separated string

blockId

optional

locales

optional — Locale codes, as an array or a comma-separated string

missingOnly

optional

includeEmpty

optional

Schema

{
  "name": "get_localization",
  "group": "design",
  "inputFields": [
    {
      "name": "websiteId",
      "required": true
    },
    {
      "name": "target",
      "required": true,
      "description": "page | page-component | chrome-header | chrome-footer | email-chrome-header | email-chrome-footer"
    },
    {
      "name": "pageId",
      "required": false,
      "description": "Required when target is page"
    },
    {
      "name": "componentId",
      "required": false,
      "description": "Required when target is page-component"
    },
    {
      "name": "keys",
      "required": false,
      "description": "Localization keys, as an array or a comma-separated string"
    },
    {
      "name": "blockId",
      "required": false
    },
    {
      "name": "locales",
      "required": false,
      "description": "Locale codes, as an array or a comma-separated string"
    },
    {
      "name": "missingOnly",
      "required": false
    },
    {
      "name": "includeEmpty",
      "required": false
    }
  ]
}