Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
docs: accept only the documented locale values
Shubham Mehta committed
Oct 14, 2026 at 17:19 UTC
a752ec5134bbc9c3dced8be5bd61c8c7ce03e1d7
3 files changed
+3
-3
docs/content/changelog/10-23-26-connect-link-languages.mdx
+1
-1
@@ -10,6 +10,6 @@ The Connect Link can now show its text in Spanish or Simplified Chinese. Add a `
10
11
- **Choose the language per user.** Append `locale` to the `redirect_url` returned by `session.authorize()` or `connected_accounts.link()` before you send it to the user. Links without the parameter show English, as before.
12
- **The whole flow stays in one language.** The connect screen and the success or failure screen after the OAuth provider sends the user back all use the language you chose.
13
-- **Unsupported values fall back to English.** Regional tags such as `es-MX` use the closest supported language. Traditional Chinese and other languages show English.
13
+- **Other values show English.** The Connect Link accepts `en`, `es`, and `zh-CN` exactly as written. Any other value, including `es-MX`, shows English.
14
15
Field names and help text on API key forms, error details from the provider, and the provider's own sign-in and consent screens keep their original language. See [White-labeling authentication → Language](/docs/authentication/white-labeling-authentication#language) for examples in Python and TypeScript.
docs/content/docs/auth-configuration/white-labeling.mdx
+1
-1
@@ -66,7 +66,7 @@ The Connect Link shows English by default. To show it in your user's language, a
66
| Spanish | `es` |
67
| Simplified Chinese | `zh-CN` |
68
69
-Regional tags such as `es-MX` or `zh-Hans` use the closest supported language. Any other value, including Traditional Chinese, shows English. The language stays the same for the whole flow, including the success or failure screen after the user returns from the OAuth provider.
69
+Use these values exactly as written. Any other value, including variants such as `es-MX` or `zh-cn`, shows English. The language stays the same for the whole flow, including the success or failure screen after the user returns from the OAuth provider.
70
71
<Tabs groupId="language" items={['Python', 'TypeScript']} persist>
72
<Tab value="Python">
docs/content/docs/authentication/white-labeling-authentication.mdx
+1
-1
@@ -71,7 +71,7 @@ The Connect Link shows English by default. To show it in your user's language, a
71
| Spanish | `es` |
72
| Simplified Chinese | `zh-CN` |
73
74
-Regional tags such as `es-MX` or `zh-Hans` use the closest supported language. Any other value, including Traditional Chinese, shows English. The language stays the same for the whole flow, including the success or failure screen after the user returns from the OAuth provider.
74
+Use these values exactly as written. Any other value, including variants such as `es-MX` or `zh-cn`, shows English. The language stays the same for the whole flow, including the success or failure screen after the user returns from the OAuth provider.
75
76
<Tabs groupId="language" items={['Python', 'TypeScript']} persist>
77
<Tab value="Python">