HardcodedLocale
Localizes API error messages to a fixed locale tag.
The locale tag must conform to the format language[-script][-region] where:
languageis a 2–3 letter ISO 639 code (e.g.,en,fil)script(optional) is onlyHansorHantregion(optional) is a 2-letter ISO 3166-1 alpha-2 code (e.g.,US) or a 3-digit UN M.49 code (e.g.,419)
If the locale is not supported by Stripe's localization infrastructure, error messages will fall back to English (en-US).
Types
Link copied to clipboard
Builder for HardcodedLocale. The locale tag is validated by build.