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
trueif the locale is the store's primary locale. Returnsfalseif not.
{
"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?