The localization object
Information about the countries and languages that are available in a store. This object can be used in a localization form.
To learn how to use the
localization object to offer localization options in your theme, refer to Support multiple currencies and languages.
localization.available_countriesAnchor link to section titled "localization.available_countries"
Returns a list of country objects for each country that the store supports.
localization.available_languagesAnchor link to section titled "localization.available_languages"
Returns a list of shop_locale objects for each language that the currently selected country supports.
localization.countryAnchor link to section titled "localization.country"
Returns the country object for the currently selected country.
localization.languageAnchor link to section titled "localization.language"
Returns the shop_locale object for the currently selected language.