localization
Languages and countries, for the language selector.
Available in: Every template.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
localization.language |
object | Current language (iso_code, name, endonym_name, primary, root_url, direction). |
localization.available_languages |
array | Published languages. |
localization.country |
object | Store country (iso_code, name, currency.iso_code). |
localization.available_countries |
array | Countries. |
Example
Section titled “Example”{% for l in localization.available_languages %}{{ l.endonym_name }} {% endfor %}English العربيةRelated
Section titled “Related”Compatibility
Section titled “Compatibility”Since theme platform 1.0.
Was this page helpful?

