Set the default locale
[Internationalization] helps merchants expand their business to a global audience by creating shopping experiences in local languages and currencies. This guide provides information on configuring your storefront's default language and country and how to retrieve translated content from the Storefront API.
Set a default language and countryAnchor link to section titled "Set a default language and country"
Override the default locale at runtimeAnchor link to section titled "Override the default locale at runtime"
You can change the active country and language at runtime by passing overrides from the
languageCode props to the
Retrieve translated content from the Storefront APIAnchor link to section titled "Retrieve translated content from the Storefront API"
You can use the
useLocalization hook to pass the visitor's active
language into your Storefront API query. For example, you might need to create a product page in a customer's language:
For more information about retrieving language translations and the
@inContext directive, refer to the Storefront API documentation.