Skip to main content
Glama
localization.md1.39 kB
# Liquid Objects: Localization ## Overview The `localization` object provides information about the countries and languages available on a store. It can be used in a localization form to help merchants offer multiple currencies and languages to their customers. For detailed guidance on implementing localization in your theme, refer to the documentation on supporting multiple currencies and languages. ## Properties ### available_countries **Type:** array of [country](/docs/api/liquid/objects/country) The countries that are available on the store. ### available_languages **Type:** array of [shop_locale](/docs/api/liquid/objects/shop_locale) The languages that are available on the store. ### country **Type:** [country](/docs/api/liquid/objects/country) The currently selected country on the storefront. ### language **Type:** [shop_locale](/docs/api/liquid/objects/shop_locale) The currently selected language on the storefront. ### market **Type:** [market](/docs/api/liquid/objects/market) The currently selected market on the storefront. ## Example ```json { "available_countries": [], "available_languages": [], "country": {}, "language": {}, "market": {} } ``` ## Access The `localization` object is available globally within template contexts and can be referenced directly in Liquid code to dynamically display location-specific content and options.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/florinel-chis/shopify-liquid-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server