Skip to content

Replace texts

Documents @snap4id-sdk/app-embed 1.0.0 · @snap4id-sdk/embed-protocol 1.0.0 · protocol 1.0

A few texts can carry your wording, per locale. They travel in the host hello (copy: copy id → { locale: text }).

// React Native: per app and per flow; the flow wins per id.
createSnap4IdClient({
// …
copy: { 'payment.order': { pl: 'Kup w aplikacji', 'en-us': 'Buy in the app' } },
});
<Snap4IdFlow client={snap4id} copy={{ backToApp: { pl: 'Wróć do kursu' } }} … />;
Id Max characters Where
capture.title 60 step title of capture (reported to your header)
done.title 60 step title of done
payment.order 40 the button that opens your store purchase
backToApp 40 the done screen’s back button (default “Back” / “Wróć”)
returning.title, returning.message 80, 240 the returning screen (done screen none)
unavailable.title, unavailable.message 80, 240 shown when your partner configuration is unavailable

Values are plain text, one line, rendered as text (no HTML, Markdown or placeholders), at most 16 locales per id, lowercase locale keys (pl, en-us). The page uses the value of its session locale (exact, then the language alone), else its own text, never another language. Invalid entries are dropped one by one (the component warns in development builds).

Not overridable: error and purchase-state texts (support relies on them), the no-bridge screen and the document’s title on the capture card.