Supported Locales
The PayNext SDK supports multiple locales for internationalization with automatic translations:Complete Locale Codes Reference
Complete Locale Codes Reference
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.