<hk-locale-switch>
hk-locale-switch: Lets the shopper switch the store locale. Syntax, props, defaults and examples.
On this page
Lets the shopper switch the store locale.
Group: Localization. Name in the editor: Language switch. Complete props for every tag: Tag reference.
Syntax
<hk-locale-switch />Children: None. The tag is self-closing.
Props
Write props as kebab-case attributes.
| Prop | Type | Required | Default | Allowed values | Editor label |
|---|---|---|---|---|---|
display | select | no | name | name, code | Display |
localization | data | no | - | - | Localization data |
Required props
None. Every prop has a default or can be left out.
Examples
From packages/templates-default/theme/sections/footer.snf, lines 77 to 77:
{% if section.settings.show_language %}<hk-locale-switch />