Skip to content

localization object ​

Last updated View as Markdown

The language and the country of the store front.

Properties ​


NameTypeDescription
available_languagesarray of store_locale objectThe store language
languagestore_locale objectThe store language
available_countriesarray of country objectThe countries a visitor can see prices for
countrycountry objectThe country of the visitor, or nil

When multicurrency is on, you get every country with a supported currency in available_countries, sorted by name. In country, you get the country of the visitor, found from the IP address. When no country is found, you get the store country. When multicurrency is off, you get only the store country in both properties.