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
The ISO code of the locale in IETF language tag format.
Returns
true
if the locale is the store's primary locale. Returnsfalse
if not.
{
"endonym_name": "English",
"iso_code": "en",
"name": "English",
"primary": true,
"root_url": "/"
}
{
"endonym_name": "English",
"iso_code": "en",
"name": "English",
"primary": true,
"root_url": "/"
}
Was this section helpful?