#chris-customerportal-localization
1 messages · Page 1 of 1 (latest)
Hi 👋
The language should be determined by the customer's web browser (passing the Accept-Language request header).
However, you can also try updating the preferred-locals property directly on the Customer object
https://stripe.com/docs/api/customers/update#update_customer-preferred_locales
im generating the session link through the stripe API
You cannot set the localization when creating the portal session
weird, you can when you create the checkout portal
Oh, wait that is a feature on the Customer Portal, here
https://stripe.com/docs/api/customer_portal/sessions/object#portal_session_object-locale
The IETF language tag of the locale Customer Portal is displayed in. If blank or auto, the customer’s preferred_locales or browser’s locale is used.
If you don't want to do it on a per-session basis, I would still recommend setting it on the Customer. That way you can make adjustments on a per-customer basis
But this would be useful for testing