# Shop locale

A shop_locale is an element of the shop.published_locales array.

A `shop_locale` is an element of the [shop.published_locales](https://developer.versacommerce.de/articles/liquid-objects-shop#shop-publishedlocales) array. The `shop_locale` object has the following attributes:

## shop_locale.endonym_name

Returns the locale name in its own language, for example "français canadien".

## shop_locale.iso_code

Returns the locale code, for example `fr-CA`.

## shop_locale.name

Returns the name of the locale, for example "Canadian French".

## shop_locale.primary

Returns `true` if the locale is the shop's primary locale. Otherwise returns `false`.

## shop_locale.root_url

Returns the relative root URL of the locale.
