You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/11/14 14:25:38 UTC

[GitHub] [apisix-website] juzhiyuan opened a new issue #743: support language detection

juzhiyuan opened a new issue #743:
URL: https://github.com/apache/apisix-website/issues/743


   **Actual Behaviour**
   
   When users visit apisix.apache.org, our website will serve content in English by default.
   
   **Expected Behaviour**
   
   For users in Chinese, we could provide default Chinese contents for a quick and better involving experiment.
   
   **Solution**
   
   According to https://docusaurus.io/docs/i18n/introduction#i18n-non-goals, Docusaurus will not do language detection, see https://github.com/facebook/docusaurus/issues/5838#issuecomment-955278743 .
   
   Maybe we could use this package? https://www.npmjs.com/package/detect-browser-language


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] SkyeYoung commented on issue #743: support language detection

Posted by GitBox <gi...@apache.org>.
SkyeYoung commented on issue #743:
URL: https://github.com/apache/apisix-website/issues/743#issuecomment-1075880270


   A simple logic to fix this:
   1. add a var to localstorage or cookie
   2. if the var is false, auto detect browser language, and redirect
   3. else if the var is true, follow the user choice
   
   Tip: 
   1. we can auto handle the process when user change the language
   2. also give a option to allow user re-enable auto redirect  


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] SkyeYoung commented on issue #743: support language detection

Posted by GitBox <gi...@apache.org>.
SkyeYoung commented on issue #743:
URL: https://github.com/apache/apisix-website/issues/743#issuecomment-1075882446


   If the logic is ok, pls assign this to me, I'll fix this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] bzp2010 closed issue #743: support language detection

Posted by GitBox <gi...@apache.org>.
bzp2010 closed issue #743:
URL: https://github.com/apache/apisix-website/issues/743


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org