LocaleConfig
Configures localization of API error messages returned through ApiError.message.
API errors surfaced through TerminalException.apiError will have their ApiError.message translated to the resolved locale.
For smart readers, reader software version 2.43 or later is required for localization.
Note: The scope of localization may expand in future SDK releases. For example, TerminalException.errorMessage and other SDK-originated strings may also be localized. Integrations should avoid relying on error message content for application logic. Use error codes such as TerminalException.errorCode and ApiError.code instead.
Inheritors
Types
Localizes API error messages to the cardholder's preferred language when available, falling back to the device locale otherwise. If either locale is not supported by Stripe's localization infrastructure, error messages will fall back to English (en-US).
Localizes API error messages to a fixed locale tag.