允许用户在注册时设置语言

抱歉如果这在其他地方已被讨论,但我找不到相关信息。

我希望允许用户在注册时设置他们的首选语言。我们有一个多语言社区。将提供与偏好设置页面相同的“界面语言”选项,只是在注册时。

images src=“//assets-meta-cdck-prod-meta.s3.dualstack.us-west-1.amazonaws.com/original/3X/4/4/4481b57d8bb73937e25356d4bb70fac8a64b6349.png” 宽=“367” 高=“39”

1 个赞

I think we have already merged the feature from @simon that auto-selects the user’s client side language based on the browser language selection, haven’t we?

No we haven’t yet.

https://github.com/discourse/discourse/pull/4006

1 个赞

Hi Team,
Do we have any solution for this. My request is either the user should select their preferred language from sign up, or I from the URL request I should pass the language like “UTL ?lang=en”.

And my browser language is Japanese but for me its showing content in English only. I have changed the settings like below.
allow user locale - “checked”
set locale from accept language header - “checked”

Could some one please help me on this. I have cloned the accept-language header but its not working for me.

1 个赞