Skip to main content

shop_locale

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_name

The name of the locale in the locale itself.

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

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

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

The relative root URL of the locale.

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