VOOZH about

URL: https://shopify.dev/docs/api/liquid/objects/shop_locale

⇱ Liquid objects: shop_locale


Skip to main content

A language in a store.

To learn how to offer localization options in your theme, refer to Support multiple currencies and languages.

Properties

Anchor to
endonym_nameendonym_name

The name of the locale in the locale itself.

Anchor to
iso_codeiso_code

The ISO code of the locale in IETF language tag format.

The name of the locale in the store's primary locale.

Anchor to
primaryprimary

Returns true if the locale is the store's primary locale. Returns false if not.

Anchor to
root_urlroot_url

The relative root URL of the locale.

{
"endonym_name": "English",
"iso_code": "en",
"name": "English",
"primary": true,
"root_url": "/"
}
Example
{
 "endonym_name": "English",
 "iso_code": "en",
 "name": "English",
 "primary": true,
 "root_url": "/"
}
Was this section helpful?