You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2022/05/27 10:13:47 UTC

[apisix-website] branch feat-en-default created (now 1a596d13b39)

This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a change to branch feat-en-default
in repository https://gitbox.apache.org/repos/asf/apisix-website.git


      at 1a596d13b39 feat: disable language detection

This branch includes the following new commits:

     new 1a596d13b39 feat: disable language detection

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[apisix-website] 01/01: feat: disable language detection

Posted by ju...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch feat-en-default
in repository https://gitbox.apache.org/repos/asf/apisix-website.git

commit 1a596d13b3980317a46d50979faef35ddd16ad3f
Author: juzhiyuan <ju...@apache.org>
AuthorDate: Fri May 27 18:13:35 2022 +0800

    feat: disable language detection
---
 website/src/clientModules/lang-redirect.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/website/src/clientModules/lang-redirect.js b/website/src/clientModules/lang-redirect.js
index d3a8e400b2f..7a625361226 100644
--- a/website/src/clientModules/lang-redirect.js
+++ b/website/src/clientModules/lang-redirect.js
@@ -26,7 +26,7 @@ import config from '../../docusaurus.config';
   }
 
   function redirect() {
-    const localLang = localStorage.getItem(storeKey) || followSystem;
+    const localLang = localStorage.getItem(storeKey) || 'en';
     const lct = window.location;
     const pathArr = lct.pathname.split('/');
     const curLang = langArr.includes(pathArr[1]) ? pathArr[1] : defaultLang;