Localize a paywall
Add languages to a screen in the editor and make the SDK pick the right one for each visitor.
Open the screen in the editor. In the Languages menu choose a language under Add language. The first language is the Default; you can make another the default or remove one.
For each text, type the translation. Texts without one show Untranslated and fall back to the default text. See Localization.
Publish the screen.
In your code, pass the visitor's language:
UIKit.configure({ apiKey: 'pk_...', locale: 'vi_VN' });
// or per call:
UIKit.presentPaywall({ paywall: { placement: 'upgrade_button' }, locale: 'vi-VN', products });The SDK matches the exact language, then any language with the same first part (vi), then the screen's default. vi-VN and vi_VN both work. Prices in products are formatted for the chosen language.
Optional: show a different screen per language. Add an audience on Language starts with vi. See Audience.