Internationalization
If an end-user switches to another language on your website:
- You can change the placeholder value of some (or all) of the hosted fields. In this case, you can use the
setPlaceHolder()
function. - You can also change the style of the hosted fields (for example, switch to Arabic right-to-left text style). In this case, you can use the
setStyle()
orsetStyleAll()
function.
These functions preserve the user input in the hosted fields, they will not reload the Iframe.
i18next integration example
If your website uses i18next for internationalization, you can switch languages inside the iframe with the following codes.
Note
This example demo does not switch the language outside the iframes. You can adapt these codes to work with your own i18next integration and JavaScript framework.
Updated about 1 month ago