Stripe Connect OAuth授权页面翻译问题:locale参数无效求解决方案
Hey Alan, let's work through getting that OAuth landing page translated properly!
First off, the issue with your ?locale=fr attempt is probably due to incorrect parameter syntax. Your original authorization URL already uses a ? to kick off the query parameters, so any extra parameters need to be appended with & instead of another ?.
Here's the corrected URL with the French locale parameter added correctly:
https://connect.stripe.com/oauth/authorize?response_type=code&client_id=CODE&scope=read_write&locale=fr
If that still doesn't work, here are a few more troubleshooting steps to try:
- Validate the locale code: Stripe uses standard IETF locale codes. For French,
fr(French - France) orfr-CA(French - Canada) are both valid. Make sure you're using a code that Stripe supports—common ones likefr,es,deall work reliably. - Set a default language in your Stripe Dashboard: If you want the page to default to French for all users, head to your Stripe Dashboard > Connect > Settings > Branding. Look for the "Default language" option and select French. This will apply to all OAuth requests unless you explicitly override it with the
localeURL parameter. - Check for browser caching: Sometimes browsers cache the authorization page. Try opening the corrected URL in an incognito window to rule out cached content interfering with the locale change.
Hope one of these fixes gets your landing page displaying in French as expected!
内容的提问来源于stack exchange,提问作者Alan
相关产品推荐
相关产品推荐

