Supported Locales
The PayNext SDK supports multiple locales for internationalization with automatic translations:Complete Locale Codes Reference
Complete Locale Codes Reference
| Code | Language | Country/Region | ISO 639-1 |
|---|---|---|---|
ar | Arabic | - | ar |
bg | Bulgarian | Bulgaria | bg |
cs | Czech | Czech Republic | cs |
da | Danish | Denmark | da |
de | German | Germany | de |
el | Greek | Greece | el |
en | English | - | en |
es | Spanish | Spain | es |
et | Estonian | Estonia | et |
fi | Finnish | Finland | fi |
fil | Filipino | Philippines | fil |
fr | French | France | fr |
hr | Croatian | Croatia | hr |
hu | Hungarian | Hungary | hu |
id | Indonesian | Indonesia | id |
is | Icelandic | Iceland | is |
it | Italian | Italy | it |
ja | Japanese | Japan | ja |
ko | Korean | South Korea | ko |
lt | Lithuanian | Lithuania | lt |
lv | Latvian | Latvia | lv |
ms | Malay | Malaysia | ms |
mt | Maltese | Malta | mt |
nb | Norwegian Bokmål | Norway | nb |
nl | Dutch | Netherlands | nl |
nl-BE | Dutch (Belgium) | Belgium | nl |
pl | Polish | Poland | pl |
pt | Portuguese | Portugal | pt |
ro | Romanian | Romania | ro |
ru | Russian | Russia | ru |
sk | Slovak | Slovakia | sk |
sl | Slovenian | Slovenia | sl |
sr | Serbian | Serbia | sr |
sv | Swedish | Sweden | sv |
th | Thai | Thailand | th |
tr | Turkish | Turkey | tr |
ua | Ukrainian | Ukraine | uk |
vi | Vietnamese | Vietnam | vi |
zh | Chinese | China | zh |
All locale codes follow ISO 639-1 standards. Ukrainian uses
ua as the locale code while maintaining ISO 639-1 compliance with uk for the language identifier.Locale Detection
Automatic Detection
The PayNext SDK automatically detects the user’s locale from browser settings:Configure the
locale property (and any overrides) on the object you pass into checkout.mount('element-id', { ...config }) after instantiating PayNextCheckout(), following the pattern in Mount the Checkout.auto-detection component
Refer to Mount the Checkout for the complete mounting flow.
Optional Manual Override
If you need to override automatic detection, you can specify a locale:manual-locale component
Refer to Mount the Checkout for the complete mounting flow.
Right-to-Left (RTL) Support
The PayNext SDK automatically handles RTL layout for the Arabic locale:rtl-support component
Refer to Mount the Checkout for the complete mounting flow.
Locale Fallback
When a locale is not supported or fails to load:locale-fallback component
Refer to Mount the Checkout for the complete mounting flow.
The PayNext SDK automatically falls back to English (
en) if the specified locale is not supported or fails to load.