The shop_locale object
A shop_local
is an element of the shop.published_locales array. The shop_locale
object has the following attributes:
shop_locale.endonym_name
Returns the locale endonym name. For example, "français canadien".
shop_locale.iso_code
Returns the locale code. For example, fr-CA
.
shop_locale.name
Returns the locale name. For example, "Canadian French".
shop_locale.primary
Returns true
when the locale is the shop's primary locale. Otherwise returns false
.
shop_locale.root_url
Returns the root relative URL of the locale.