From df4f354f13e5e4bd57129b3989fb99b037d609ab Mon Sep 17 00:00:00 2001 From: Oreo Yang <2167young@163.com> Date: Tue, 30 Dec 2025 17:59:01 +0800 Subject: [PATCH 01/14] test --- docusaurus.config.js | 2 +- static/_redirects | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index f74a111..00d58c0 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -62,7 +62,7 @@ const config = { ], ], i18n: { - defaultLocale: 'en', + defaultLocale: 'zh-CN', locales: ['en', 'zh-CN'], }, themeConfig: diff --git a/static/_redirects b/static/_redirects index d9807c0..1b99b7a 100644 --- a/static/_redirects +++ b/static/_redirects @@ -1,4 +1,6 @@ -# Redirect users from China to chinese version at /zh-CN. -# / /zh-cn 302! Country=cn + +/ /en 302! [Language!=zh-CN] +/ /en 302! [Country!=cn] \ No newline at end of file From 025ea97f14f0ed820ac66ca1de862c8daaeb0b81 Mon Sep 17 00:00:00 2001 From: Oreo Yang <2167young@163.com> Date: Tue, 30 Dec 2025 18:03:09 +0800 Subject: [PATCH 02/14] test --- static/_redirects | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/static/_redirects b/static/_redirects index 1b99b7a..e506e71 100644 --- a/static/_redirects +++ b/static/_redirects @@ -1,6 +1,2 @@ - / /en 302! [Language!=zh-CN] -/ /en 302! [Country!=cn] \ No newline at end of file +/ /en 302! [Country!=cn] From f90b0dba14b28906fd2b73f390da2fdaf56f9183 Mon Sep 17 00:00:00 2001 From: Oreo Yang <2167young@163.com> Date: Tue, 30 Dec 2025 18:16:34 +0800 Subject: [PATCH 03/14] test --- docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 00d58c0..cfeb413 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -62,7 +62,7 @@ const config = { ], ], i18n: { - defaultLocale: 'zh-CN', + defaultLocale: 'zh', locales: ['en', 'zh-CN'], }, themeConfig: From 5c6f992e753bab4b3df45947900f664d00185fe7 Mon Sep 17 00:00:00 2001 From: Oreo Yang <2167young@163.com> Date: Tue, 30 Dec 2025 18:52:40 +0800 Subject: [PATCH 04/14] test --- docusaurus.config.js | 2 +- static/_redirects | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index cfeb413..00d58c0 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -62,7 +62,7 @@ const config = { ], ], i18n: { - defaultLocale: 'zh', + defaultLocale: 'zh-CN', locales: ['en', 'zh-CN'], }, themeConfig: diff --git a/static/_redirects b/static/_redirects index e506e71..3ab9d80 100644 --- a/static/_redirects +++ b/static/_redirects @@ -1,2 +1,3 @@ -/ /en 302! [Language!=zh-CN] -/ /en 302! [Country!=cn] +# 将非中国用户 / 重定向到 /en +# / /en 302! Country!=CN +/ /en 302! Language!=zh-CN From 89c79c4a99e20cd142e7bc2fbe93a0eaab073942 Mon Sep 17 00:00:00 2001 From: Oreo Yang <2167young@163.com> Date: Tue, 30 Dec 2025 19:59:01 +0800 Subject: [PATCH 05/14] test --- static/_redirects | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/_redirects b/static/_redirects index 3ab9d80..72b33f0 100644 --- a/static/_redirects +++ b/static/_redirects @@ -1,3 +1,3 @@ # 将非中国用户 / 重定向到 /en # / /en 302! Country!=CN -/ /en 302! Language!=zh-CN +/ /en 302! [Language!~zh] From 41cf54ae1f4be70dfca49ab59ab6579b86d96904 Mon Sep 17 00:00:00 2001 From: Oreo Yang <2167young@163.com> Date: Tue, 30 Dec 2025 20:08:19 +0800 Subject: [PATCH 06/14] test --- static/_redirects | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/_redirects b/static/_redirects index 72b33f0..512fb72 100644 --- a/static/_redirects +++ b/static/_redirects @@ -1,3 +1,4 @@ # 将非中国用户 / 重定向到 /en # / /en 302! Country!=CN -/ /en 302! [Language!~zh] +/ /en 302! [Language!=zh] +/ /en 301! [Language!=zh] \ No newline at end of file From f496389ffb9e3b0c1ab3a9d482ad7965841838ed Mon Sep 17 00:00:00 2001 From: Oreo Yang <2167young@163.com> Date: Tue, 30 Dec 2025 20:29:24 +0800 Subject: [PATCH 07/14] test --- static/_redirects | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/_redirects b/static/_redirects index 512fb72..3455eb6 100644 --- a/static/_redirects +++ b/static/_redirects @@ -1,4 +1,7 @@ # 将非中国用户 / 重定向到 /en # / /en 302! Country!=CN / /en 302! [Language!=zh] -/ /en 301! [Language!=zh] \ No newline at end of file +/ /en 301! [Language!=zh] +/ /en 302! [Language!=zh*] +/ /fr 302! [Language=fr] +/ /en 302! [Language=en] From 0c9bf205b4f717575d218c580db05ec3ad1169cb Mon Sep 17 00:00:00 2001 From: Oreo Yang <2167young@163.com> Date: Tue, 30 Dec 2025 20:39:01 +0800 Subject: [PATCH 08/14] test --- static/_redirects | 3 --- 1 file changed, 3 deletions(-) diff --git a/static/_redirects b/static/_redirects index 3455eb6..433a0fb 100644 --- a/static/_redirects +++ b/static/_redirects @@ -1,7 +1,4 @@ # 将非中国用户 / 重定向到 /en # / /en 302! Country!=CN -/ /en 302! [Language!=zh] -/ /en 301! [Language!=zh] -/ /en 302! [Language!=zh*] / /fr 302! [Language=fr] / /en 302! [Language=en] From 2c9a51d5cd6dfd74afcd3168b63561577d7458f5 Mon Sep 17 00:00:00 2001 From: Oreo Yang <2167young@163.com> Date: Tue, 30 Dec 2025 20:43:19 +0800 Subject: [PATCH 09/14] test --- static/_redirects | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/_redirects b/static/_redirects index 433a0fb..b9619ff 100644 --- a/static/_redirects +++ b/static/_redirects @@ -1,4 +1,5 @@ -# 将非中国用户 / 重定向到 /en -# / /en 302! Country!=CN / /fr 302! [Language=fr] / /en 302! [Language=en] +/zh-CN /en 302! [Language=fr] +/zh-CN /en 302! [Language!=zh*] +/zh-CN /en 302! [Language!=zh] From 17c52e910acc62549d8ebd9ea6520a3bc43f71e8 Mon Sep 17 00:00:00 2001 From: Oreo Yang <2167young@163.com> Date: Tue, 30 Dec 2025 20:48:14 +0800 Subject: [PATCH 10/14] test --- docusaurus.config.js | 4 ++-- static/_redirects | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 00d58c0..3b5661c 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -62,8 +62,8 @@ const config = { ], ], i18n: { - defaultLocale: 'zh-CN', - locales: ['en', 'zh-CN'], + defaultLocale: 'zh', + locales: ['en', 'zh'], }, themeConfig: diff --git a/static/_redirects b/static/_redirects index b9619ff..cfe423d 100644 --- a/static/_redirects +++ b/static/_redirects @@ -1,5 +1,5 @@ / /fr 302! [Language=fr] / /en 302! [Language=en] -/zh-CN /en 302! [Language=fr] -/zh-CN /en 302! [Language!=zh*] -/zh-CN /en 302! [Language!=zh] +/zh /en 302! [Language=fr] +/zh /en 302! [Language!=zh*] +/zh /en 302! [Language!=zh] From 176574254bbdec25c0b7cc022551c5f4e07f4997 Mon Sep 17 00:00:00 2001 From: Oreo Yang <2167young@163.com> Date: Tue, 30 Dec 2025 20:58:20 +0800 Subject: [PATCH 11/14] test --- static/_redirects | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/static/_redirects b/static/_redirects index cfe423d..81fceab 100644 --- a/static/_redirects +++ b/static/_redirects @@ -1,5 +1,2 @@ -/ /fr 302! [Language=fr] -/ /en 302! [Language=en] -/zh /en 302! [Language=fr] -/zh /en 302! [Language!=zh*] -/zh /en 302! [Language!=zh] +/ /fr 302! +/ /en 302! From ce84a893b58d3f430e3cf41246cdf352bde68b24 Mon Sep 17 00:00:00 2001 From: Oreo Yang <2167young@163.com> Date: Tue, 30 Dec 2025 21:10:51 +0800 Subject: [PATCH 12/14] test --- docusaurus.config.js | 4 ++-- static/_redirects | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 3b5661c..f74a111 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -62,8 +62,8 @@ const config = { ], ], i18n: { - defaultLocale: 'zh', - locales: ['en', 'zh'], + defaultLocale: 'en', + locales: ['en', 'zh-CN'], }, themeConfig: diff --git a/static/_redirects b/static/_redirects index 81fceab..3d88326 100644 --- a/static/_redirects +++ b/static/_redirects @@ -1,2 +1,2 @@ -/ /fr 302! -/ /en 302! +/ /zh-cn 302! Country=cn +/ /zh-cn 302! Language=zh From 4a4b902cea3f3090b6b9cc471abb349bd7a937c3 Mon Sep 17 00:00:00 2001 From: Oreo Yang <2167young@163.com> Date: Tue, 30 Dec 2025 21:15:42 +0800 Subject: [PATCH 13/14] test --- static/_redirects | 1 - 1 file changed, 1 deletion(-) diff --git a/static/_redirects b/static/_redirects index 3d88326..021ea16 100644 --- a/static/_redirects +++ b/static/_redirects @@ -1,2 +1 @@ -/ /zh-cn 302! Country=cn / /zh-cn 302! Language=zh From 3ee5313b00b4a3f8b903f05dfa309f4e89fc8004 Mon Sep 17 00:00:00 2001 From: Oreo Yang <2167young@163.com> Date: Tue, 30 Dec 2025 21:31:10 +0800 Subject: [PATCH 14/14] test --- static/_redirects | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/_redirects b/static/_redirects index 021ea16..5ceaeaf 100644 --- a/static/_redirects +++ b/static/_redirects @@ -1 +1 @@ -/ /zh-cn 302! Language=zh +/ /zh-CN 302! Country=CN