diff --git a/blog/2025-05-27-ivorysql-wasm/index.md b/blog/2025-05-27-ivorysql-wasm/index.md index e0eba42..7a3d5dd 100644 --- a/blog/2025-05-27-ivorysql-wasm/index.md +++ b/blog/2025-05-27-ivorysql-wasm/index.md @@ -76,4 +76,4 @@ Task Manager observations show that IvorySQL’s browser-based operation consume ## Community Edition Coming Soon -The IvorySQL-WASM Community Edition will be released alongside IvorySQL 4.5. For details, follow the [IvorySQL Official Website](https://www.ivorysql.org/zh-cn/). \ No newline at end of file +The IvorySQL-WASM Community Edition will be released alongside IvorySQL 4.5. For details, follow the [IvorySQL Official Website](https://www.ivorysql.org/zh-CN/). \ No newline at end of file diff --git a/docusaurus.config.js b/docusaurus.config.js index 89bfbad..05f5c6e 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -76,7 +76,18 @@ const config = { ], i18n: { defaultLocale: 'en', - locales: ['en', 'zh-CN'], + locales: ['en', 'zh-cn'], + localeConfigs: { + en: { + label: 'English', + htmlLang: 'en', + }, + 'zh-cn': { + label: '中文', + htmlLang: 'zh-CN', + path: 'zh-CN', // 使用小写路径,确保yarn build 一致 + }, + }, }, themeConfig: ({ diff --git a/i18n/zh-CN/docusaurus-plugin-content-blog/2025-05-27-ivorysql-wasm/index.md b/i18n/zh-CN/docusaurus-plugin-content-blog/2025-05-27-ivorysql-wasm/index.md index e9060f7..2a1503d 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-blog/2025-05-27-ivorysql-wasm/index.md +++ b/i18n/zh-CN/docusaurus-plugin-content-blog/2025-05-27-ivorysql-wasm/index.md @@ -76,4 +76,4 @@ IvorySQL-WASM 核心技术: ## 社区版即将发布 -IvorySQL-WASM 社区版将会伴随 IvorySQL 4.5 一起发布,详情请关注 [IvorySQL 官网](https://www.ivorysql.org/zh-cn/)信息。 \ No newline at end of file +IvorySQL-WASM 社区版将会伴随 IvorySQL 4.5 一起发布,详情请关注 [IvorySQL 官网](https://www.ivorysql.org/zh-CN/)信息。 \ No newline at end of file diff --git a/static/_redirects b/static/_redirects index c16dd16..734d268 100644 --- a/static/_redirects +++ b/static/_redirects @@ -1,4 +1,5 @@ # Redirect users from China to chinese version at /zh-CN. -/ /zh-cn 302! Country=cn -# Also users with Chinese language should be redirected to /zh-cn -# / /zh-cn 302! Language=zh +# / /zh-CN 302! Country=cn +# Also users with Chinese language should be redirected to /zh-CN +# / /zh-CN 302! Language=zh +