What text does the drawer show?
Ask: "What text do my French customers see in the cart drawer?"
Step 1 — Ask for one language
Call get_translations with locale. Leave template alone unless the question is about a
template that is not the live one — it defaults to whichever template is live, which is what shoppers
are actually seeing.
On a store with several languages, asking for everything at once regularly exceeds the 16,000
character result cap, and the payload arrives cut in half. template cannot narrow it — the result
is already one template — so locale is the parameter that helps. Ask for one language.
Step 2 — Read the two layers apart
Each result carries both:
| Field | What it is | Edited on |
|---|---|---|
text | The wording saved on the Design screen | Design |
translations | Per-language overrides | Translations |
text is what buyers see, and the fallback for every language with no translation of its own.
Your store's own primary language usually has nothing in translations — there was nothing to
translate it from. That is normal, and it does not mean buyers see no text. They see text.
A language that returns nothing has no override of its own, so buyers in that language see text.
Step 3 — Compare against a template you are not using
On a store that still has the earlier (v1) drawer, get_all_templates lists the saved templates and
get_translations accepts a template, so you can read what a template that is not live says. Do it
before switching templates, not after — wording does not carry across. A v2 drawer has no template
choice; omit template.
What you finish holding
The exact strings shoppers see, for one language, and whether that language has wording of its own or falls back to the base text.