Language Files (Locales)
Last updated
What locale files are and where they live in your theme
How to customize text labels throughout your storefront
How to add new languages and manage translations
Locale files control all the translatable text in your Shopify theme. These are stored as .json files inside your theme's locales folder. Each file represents one language (e.g., en.default.json for English).
You’ll see translations for things like:
Button labels (e.g., “Add to Cart”)
Section headings
System messages (e.g., “No products found”)
plain-jane-theme
└── locales
├── en.default.json
├── fr.default.json
└── es.default.jsonEach file contains a set of key-value pairs, where the key is the identifier and the value is the translatable text.
Example:
From your Shopify Admin, go to Online Store > Themes
Click Customize next to your current theme
In the theme editor, click the three-dot menu (⋯) > Edit default theme content
Use the search bar to find any text you want to update (e.g., “Sold Out”)
Change the value and click Save
💡 This is the easiest way to rename buttons like “Buy Now” or “Learn More” without touching code.
To offer your store in more than one language:
Go to Settings > Languages in your admin
Add the languages you want to support
Shopify will automatically generate the new .json locale files in your theme
You can then translate content using:
Shopify’s admin UI
Translation apps (like Weglot or Langify)
Manually editing the .json files (developer-level)
⚠️ Be sure to update metafields and custom content for each language too if you're using those.
You can access locale strings in Liquid using the t filter:
If you’re building or extending a theme, structure your locale keys by section or context (e.g., header, footer, cart, etc.) to keep things organized.
💬 Join our community on Discord: https://discord.gg/hcc2GvgZc6
📧 Email us at: support@openspaces.design
💻 Live chat with us: Available Monday–Friday, 10AM–6PM EST, directly on our website
Last updated
"products": {
"product": {
"add_to_cart": "Add to Cart"
}
}{{ 'products.product.add_to_cart' | t }}