Skip to content

Commit

Permalink
feat:优化中文化版本
Browse files Browse the repository at this point in the history
  • Loading branch information
microrain authored and microrain committed Nov 12, 2024
1 parent 8d93410 commit eb9a577
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit eb9a577

Please sign in to comment.