Localization
Learn how to localize the PaySight Widget for different languages and regions
Localization
Supported Locales
English (US)
en-US
English (UK)
en-GB
German
de-DE
Spanish
es-ES
French
fr-FR
Italian
it-IT
Polish
pl-PL
Portuguese
pt-PT
Romanian
ro-RO
Russian
ru-RU
Turkish
tr-TR
Finnish
fi-FI
Norwegian
no-NO
English (US)
en-US
English (UK)
en-GB
German
de-DE
Spanish
es-ES
French
fr-FR
Italian
it-IT
Polish
pl-PL
Portuguese
pt-PT
Romanian
ro-RO
Russian
ru-RU
Turkish
tr-TR
Finnish
fi-FI
Norwegian
no-NO
Locale Code | Language | Region |
---|---|---|
en-US | English | United States |
en-GB | English | United Kingdom |
de-DE | German | Germany |
es-ES | Spanish | Spain |
fr-FR | French | France |
it-IT | Italian | Italy |
pl-PL | Polish | Poland |
pt-PT | Portuguese | Portugal |
ro-RO | Romanian | Romania |
ru-RU | Russian | Russia |
tr-TR | Turkish | Turkey |
fi-FI | Finnish | Finland |
no-NO | Norwegian | Norway |
Setting the Locale
You can set the locale when initializing the widget:
You can set the locale when initializing the widget:
You can update the locale after the widget has been initialized:
Localization Effects
Custom Button Text
Localization Best Practices
Default to Browser Locale
Consider detecting the user’s browser locale and setting the widget locale accordingly:
Provide Language Selection
Give users the ability to choose their preferred language:
Test with RTL Languages
If you plan to support right-to-left languages in the future, test your integration with RTL layout.
Ensure Consistent Experience
Make sure the rest of your application is localized to match the widget locale for a consistent user experience.