Language Files (Locales)
What You’ll Learn
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
🧩 What Are Locale Files?
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”)
📁 File Location in Your Theme
Each file contains a set of key-value pairs, where the key is the identifier and the value is the translatable text.
Example:
✏️ How to Edit Text Labels
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.
🌍 Adding or Managing Multiple Languages
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 themeYou 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.
🧠 Developer Notes
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.
Need Help?
📧 Email us at: support@openspaces.design
💻 Live chat with us: Available Monday–Friday, 10AM–6PM EST, directly on our website
Last updated