How to allow customers to choose a language in checkout and self-service portal
Problem Statement
You have multiple languages configured and want customers to select their preferred language on the checkout or portal page. You need to know how Chargebee identifies customer locale and how to enable language selection.
Solution
Chargebee uses the customer's locale when one is set in the Admin console, through the API, or in the portal. When Use browser locale if customer locale is not specified is enabled and the customer has no locale, checkout and the self-serve portal use the browser locale. Invoices and emails use the site default language when no customer locale is set. Multiple languages are available on specific plans. See the plans and pricing page.
You can also send the "locale" parameter with the plan-specific hosted page URL so that the hosted page opens in the language for that locale by default.
Example link with the customer[locale] being passed: https://test.chargebee.com/hosted_pages/plans/free?customer[locale]=sv
For more on the localization feature, see Configure multiple languages.
For Checkout & Portal
You can enable Allow Customer to change the locale from Settings (Left-side panel) >> Configure Chargebee >> Checkout & Self-Serve Portal, then choose Advanced Settings under the Configurations tab.
Related Doc How Languages are set for Customers?