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

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.

Inputs

FieldRequiredNotes
websiteIdrequired
targetrequiredpage | page-component | chrome-header | chrome-footer | email-chrome-header | email-chrome-footer
pageIdoptionalRequired when target is page
componentIdoptionalRequired when target is page-component
keysoptionalLocalization keys, as an array or a comma-separated string
blockIdoptional
localesoptionalLocale codes, as an array or a comma-separated string
missingOnlyoptional
includeEmptyoptional