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.
The result also names the locales this template has overrides for, so a language that returns nothing can be told apart from one that was never set up.
Step 3 — Compare against a template you are not using
To see what a saved-but-not-live template says, call get_all_templates for the names, then
get_translations with that template. This is the check worth doing before switching
templates, not after — wording does not carry across.
What you finish holding
The exact strings shoppers see, for one template and one language, and the list of which other languages that template covers.