--- title: Localization - Storefront API description: > Information about the shop's configured localized experiences, including available countries and languages. The [`country`](/docs/api/storefront/unstable/objects/Localization#field-Localization.fields.country) and [`language`](/docs/api/storefront/unstable/objects/Localization#field-Localization.fields.language) fields reflect the active localization context, which you can change using the `@inContext` directive on queries. Use [`availableCountries`](/docs/api/storefront/unstable/objects/Localization#field-Localization.fields.availableCountries) to list all countries with enabled localized experiences, and [`availableLanguages`](/docs/api/storefront/unstable/objects/Localization#field-Localization.fields.availableLanguages) to get languages available for the currently active country. Each [`Country`](/docs/api/storefront/unstable/objects/Country) includes its own currency, unit system, and available languages. api_version: unstable api_name: storefront source_url: html: 'https://shopify.dev/docs/api/storefront/unstable/objects/Localization' md: 'https://shopify.dev/docs/api/storefront/unstable/objects/Localization.md' --- # Localization object Information about the shop's configured localized experiences, including available countries and languages. The [`country`](https://shopify.dev/docs/api/storefront/unstable/objects/Localization#field-Localization.fields.country) and [`language`](https://shopify.dev/docs/api/storefront/unstable/objects/Localization#field-Localization.fields.language) fields reflect the active localization context, which you can change using the `@inContext` directive on queries. Use [`availableCountries`](https://shopify.dev/docs/api/storefront/unstable/objects/Localization#field-Localization.fields.availableCountries) to list all countries with enabled localized experiences, and [`availableLanguages`](https://shopify.dev/docs/api/storefront/unstable/objects/Localization#field-Localization.fields.availableLanguages) to get languages available for the currently active country. Each [`Country`](https://shopify.dev/docs/api/storefront/unstable/objects/Country) includes its own currency, unit system, and available languages. ## Fields * available​Countries [\[Country!\]!](https://shopify.dev/docs/api/storefront/unstable/objects/Country) non-null The list of countries with enabled localized experiences. * available​Languages [\[Language!\]!](https://shopify.dev/docs/api/storefront/unstable/objects/Language) non-null The list of languages available for the active country. * country [Country!](https://shopify.dev/docs/api/storefront/unstable/objects/Country) non-null The country of the active localized experience. Use the `@inContext` directive to change this value. * language [Language!](https://shopify.dev/docs/api/storefront/unstable/objects/Language) non-null The language of the active localized experience. Use the `@inContext` directive to change this value. * market [Market!](https://shopify.dev/docs/api/storefront/unstable/objects/Market) non-nullDeprecated *** ## Map No referencing types *** ## Queries * [localization](https://shopify.dev/docs/api/storefront/unstable/queries/localization) query Returns the shop's localization settings. Use this query to build [country and language selectors](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/markets) for your storefront. The [`country`](https://shopify.dev/docs/api/storefront/latest/queries/localization#returns-Localization.fields.country) and [`language`](https://shopify.dev/docs/api/storefront/latest/queries/localization#returns-Localization.fields.language) fields reflect the active localized experience. To change the context, use the [`@inContext`](https://shopify.dev/docs/api/storefront#directives) directive with your desired country or language code. *** ## Localization Queries ### Queried by * [localization](https://shopify.dev/docs/api/storefront/unstable/queries/localization)