Shopify translation API tutorial (2026): add a second language to a store from your own Shopify app with the GraphQL Admin API – enable German, publish it on the storefront (the web presence step most tutorials miss), translate a page with translationsRegister and content digests, spot outdated translations, and read the store's markets. Shopify app development series, episode 12 – everything shown is real, nothing skipped.
What you'll learn
- Scopes write_locales, write_translations, write_markets
- shopLocaleEnable + shopLocaleUpdate
- webPresenceUpdate: why /de/ was a 404
- translatableResource + translationsRegister (digests)
- outdated translations
- Markets: read them
💻 Free source code for this episode: github.com/fayyaz315/shopify-app-development-2026/tree/ep12
Chapters
- 0:00 Preview + intro
- 0:38 Four steps
- 1:39 The Languages page
- 2:16 Enable German
- 3:04 Publish = web presence
- 3:53 Translate a page
- 5:06 On the storefront
- 5:36 Outdated translations
- 6:39 Markets
- 7:05 Honest notes
- 7:48 Recap
Step by step (full walkthrough)
Preview + intro
In the next ten minutes, your app adds a second language to a Shopify store, and translates a page into it. You'll see why a published language can still be a page not found, and how Shopify tells you a translation is out of date. This is the Shopify translation API at work.
Our app added German to the store, and this page is now live in German. This is episode twelve of the Shopify app development series. Last time, pages, blogs and menus.
Today: languages and translations. The full code is free on GitHub, and the link is in the description.
Four steps
Getting a store into a second language takes four steps, and most tutorials stop after three. Enable the language. Publish it.
Give it a place on the storefront, called a web presence. Then translate the content. Enable adds the language to the store, but only the admin sees it.
Publish marks it ready for shoppers. The web presence gives it an address, like/d e. Without that, there's no German storefront to visit.
And translations fill the German storefront with German text. Anything untranslated falls back to English. Good uses: sync translations from an agency's spreadsheet, machine translate new products, or flag outdated text for review.
Three new scopes: write locales for languages, write translations, and write markets, because web presences belong to markets. As before, I restarted the dev server and opened the app once to grant them.
The Languages page
The new Languages and markets page. Right now the store speaks only English, the default. One query reads the shop's languages, the latest pages, the web presences, and the markets.
For each language, the loader looks up its storefront address in the main web presence's root URLs. This store has two web presences: the main one, and Mexico's. In the table, English says default, the others say published or not published, and the storefront column shows that root URL.
Enable German
Add language, German. Language added. It's in the list, but not published, and it has no storefront address.
That's shopLocaleEnable, with the language code. In my tests, a new language always starts unpublished. Shopify's full list of supported languages comes from available locales.
It starts with Afrikaans, Akan and Albanian. Remove is shopLocaleDisable, which takes the language off the store again. Our add language picker offers a short list, and hides languages the store already has.
Let's check the storefront anyway, at/d e/pages/shipping and returns. Page not found. Shoppers can't reach German yet.
Publish = web presence
Back in the app. Publish does two things now, and the second one is the step people miss. Publish.
Published, and German now has an address: slash d e. First, shopLocaleUpdate with published true. When I stopped there, slash d e was still a page not found.
The fix: webPresenceUpdate. The main web presence, the one without a subfolder, gets German in its alternate locales. We keep the other alternate languages and add ours.
Unpublish does the reverse and removes it. Right after that, the web presence's root URLs listed/d e, and the German storefront answered. Coming up: what Shopify does when the English text changes after you've translated it.
Translate a page
Now translate. The page is Shipping and returns, into German. The English title and text on the left.
The German title and text on the right. Save translation. Translation saved.
To translate anything, first read its translatable resource. Each field comes with a key, its English value, and a digest. A page lists its title, its body, and its handle as translatable.
Our form shows the title and the body. And translations come back for one language at a time. Here, German.
The digest is a fingerprint of the English text you're translating. Our form keeps it in a hidden field. Then one translations register call: for each field, the language, the key, the translated value, and that digest.
The page and language pickers put their choice in the URL, so the loader reads the right page in the right language. When a translation is outdated, our form adds the word outdated to that field's label. Every action returns userErrors, and the page shows Shopify's message in a red toast.
Our text box is plain text, so the body gets a paragraph tag before it's saved.
On the storefront
The proof, on the real storefront. Slash d e/pages/shipping and returns. Versand und Rückgabe, with the German text.
That small box at the top is Chrome's own translate offer. It's the browser, not Shopify. And the same page without/d e is still English.
One page, two languages. The storefront picks the language from the address. Same page, same handle, a different prefix.
Outdated translations
Now, what happens when the English text changes later? In GraphiQL, the translatable resource for this page. Each field's digest, and our two German translations.
Outdated: false. Now I change the English text: we ship within one working day. Saved.
Same query again. Look at the body's digest. It's a different fingerprint now.
And the German body translation says outdated: true. The title, which didn't change, is still false. So Shopify keeps the old German text live, but flags it.
A translation app can list every outdated field for the merchant. And a digest that doesn't match any English text? Translatable content hash is invalid.
Shopify won't store a translation of text it can't identify. One more error from my tests: translating into a language the store hasn't enabled gives invalid locale for shop.
Markets
Last, markets. They're at the bottom of our page. This store has three: International with twenty eight countries, Mexico with its own m x subfolder, and Pakistan in rupees.
Each market can have its own web presence. That's where Mexico's subfolder comes from: its address is/e n dash m x. Our page only reads markets.
Creating and changing them deserves its own episode.
Honest notes
A few honest notes before the recap. One: Shopify adds locale equals e n to every embedded app's URL, the admin's own language. So our page's query parameters are called p g and lang.
Two: we translate pages only. Products, collections and menus use the same translatable resource and the same mutation. Three: real translation apps translate in bulk and re-check outdated fields.
Ours does one page by hand. Want to practise? Translate a product's title the same way, then open it on the storefront with/d e.
And everything you saw was tested on my real development store, on API version 2026-10, before I pressed record.
Recap
So, the recap. Add the locales, translations and markets scopes. Enable the language, publish it, and add it to a web presence, or shoppers get a page not found.
Translate with translations register, sending each field's digest. And watch for outdated, because English edits don't update the translation for you. That's the Shopify translation API in 2026, inside a real app, on a real store.
The full code for this episode is free on GitHub. The link is in the description. Next episode: shipping.
Delivery profiles, zones and rates, from your own app. See you there.
Quick fixes from this episode (60-second Shorts)
Shopify Translations API: Published Language Still 404? The Missing Step
Shopify translations API (2026-10): I enabled German and published it – and /de/ was still a 404. A language also needs a web presence: webPresenceUpdate with alternateLocales on the main presence, and /de/ appears. Tested on a real store.
Shopify GraphQL API Translations: The Digest and Outdated Translations
Shopify GraphQL API translations (2026-10): every translatable field has a digest – a fingerprint of the English text. translationsRegister needs it (a wrong one: 'Translatable content hash is invalid'). Change the English text and that translation turns outdated: true.
The Shopify App Development 2026 series
All episodes are free, with the code on GitHub. Course page: Shopify App Development 2026.
- Episode 1: How to Create a Shopify App in 2026 (Shopify CLI Step by Step for Beginners)
- Episode 2: Shopify Admin API Tutorial 2026
- Episode 3: Shopify Product Variants API 2026
- Episode 4: Shopify GraphQL Create Collection 2026
- Episode 5: Shopify Update Inventory API 2026
- Episode 6: Shopify Create Discount Code API 2026
- Episode 7: Shopify Metafields API 2026
- Episode 8: Shopify Metaobjects API 2026
- Episode 9: Shopify App Webhooks 2026
- Episode 10: Shopify File Upload API 2026
- Episode 11: Shopify Page API 2026
- Episode 12: Shopify Translation API 2026 (this episode)
🔔 New episodes every week on the YouTube channel. Need a custom Shopify app or API integration? Wixob Technologies builds them: info@wixob.com.