diff --git a/docusaurus.config.js b/docusaurus.config.js index 61f2f4c..bd4e7e1 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -47,6 +47,21 @@ const config = { // src:"http://127.0.0.1:8080/api/application/embed?protocol=http&host=127.0.0.1:8080&token=1266627a551bb5ac", // } ], + // 多语言配置 + i18n: { + defaultLocale: 'zh-Hans', + locales: ['zh-Hans', 'en'], + path: 'i18n', + localeConfigs: { + en: { + label: 'English', + direction: 'ltr', + htmlLang: 'en-US', + calendar: 'gregory', + path: 'en', + }, + }, + }, presets: [ [ 'classic',