Skip to content
Hekana Spray
Documentation
Getting started
Theme development
Components and tags

Localization

Apps and custom code

Examples and recipes
API reference
Publishing
Build apps
AI development

<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

html
<hk-locale-switch />

Children: None. The tag is self-closing.

Props

Write props as kebab-case attributes.

PropTypeRequiredDefaultAllowed valuesEditor label
displayselectnonamename, codeDisplay
localizationdatano--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:

html
{% if section.settings.show_language %}<hk-locale-switch />

Next steps