Locales and translation
File naming, t, pluralization, fallback, and published locale URLs —
Locales and translation.
Edit default theme content is the form-based editor for words supplied by a
theme: button labels, status messages, validation text, empty states, and other
strings in locales/*.json. It edits the selected theme’s draft and does not
change product/page content or visual-editor setting values.
Open Online store → Themes, open a theme’s actions, then select Edit default theme content. The dedicated route is scoped to that store and theme:
/stores/STORE_ID/themes/THEME_ID/contentUse the theme action instead of editing IDs in the URL; the seller API still checks store ownership and permissions.
The page reads the theme’s current draft and enumerates JSON files in
locales/. Schema locale files such as en.default.schema.json are excluded;
this screen edits storefront strings, not visual-editor labels.
The required default storefront file—normally
locales/en.default.json—defines:
Every string leaf becomes one row. A nested path such as
products.product.add_to_cart is shown with a human-readable breadcrumb and its
exact dot-path. Pluralization objects become separate rows such as
cart.items_count.one and cart.items_count.other. Numbers, booleans, arrays,
objects without string leaves, and null are preserved in the JSON but are not
editable rows.
Choose the locale marked (default).
Select a top-level category tab or use Filter items to search the key, current value, or default text.
Change one or more string values. Edited rows receive an Edited badge and the page counts effective changes.
Select Save.
Preview the draft, then publish the theme when the new copy is ready for buyers.
An empty value in the default locale is saved as an empty string because the default file is the source of truth. If an empty default is not intentional, enter the text before saving.
Choose another locale file from Language. Its rows use the default-locale text as the placeholder and show the default value below the input.
Switching language reloads that file. Save changes before switching if they must be retained.
Category tabs are the sorted top-level keys from the default JSON. Filter items searches all of these case-insensitively:
A filter changes only which rows are visible; it never deletes hidden keys or changes the saved JSON.
Save serializes formatted JSON back to the selected locale file in the theme’s draft. It sends the revision that was loaded with the page. If another tab, teammate, code-editor save, or import advanced that file first, the stale save is rejected rather than overwriting newer work.
When This file changed elsewhere appears:
Copy any local text you need to keep.
Select Reload to fetch the latest draft file and revision.
Reapply the intended changes.
Save again.
The general Reload action discards unsaved values for the selected language and reloads current draft files. There is no merge of two conflicting locale documents in this form editor.
Saving does not publish. Buyers continue to see the current live theme until you publish the validated draft from the theme library or visual editor.
| Content | Correct surface |
|---|---|
| Section/block setting values and page layout | Visual editor |
Theme setting/schema labels in *.schema.json | Edit theme code |
| Products, collections, pages, blogs, or metaobject entries | Their seller-admin content editor |
| Published-language list and primary language | Settings → Languages |
| Store home-page title/meta description/social image | Online store preferences |
| Checkout content owned by checkout settings | Settings → Checkout |
Before publishing:
{{ name }} and plural forms with 0,
1, and several items;_html translations contain only trusted theme markup; andThe theme compiler caps each locale file at 1.5 MiB. A missing translation is a fallback concern, while malformed JSON is a validation error.
LOCALE.default.json; a schema locale does not count..schema.json file.Locales and translation
File naming, t, pluralization, fallback, and published locale URLs —
Locales and translation.
Using the visual editor
Edit layout, section/block settings, and preview state — Visual editor guide.
Edit theme code
Work directly with storefront and schema locale JSON — Edit theme code.