Skip to content

Commit

Permalink
lang
Browse files Browse the repository at this point in the history
  • Loading branch information
XTsat committed Nov 5, 2023
1 parent a27b567 commit 2498946
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
24 changes: 12 additions & 12 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ export default defineUserConfig({
// ['meta', { name: 'theme-color', content: '#3eaf7c' }],
],

// locales: {
// '/zh/': {
// lang: 'zh_CN',
// title: 'Watt Toolkit 指南',
// description: '「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。',
// },
// '/en/': {
// lang: 'en_US',
// title: 'Watt Toolkit Guide',
// description: 'Watt Toolkit" is an open source cross-platform multi-purpose game toolkit',
// },
// },
locales: {
'/zh/': {
lang: 'zh',
title: 'Watt Toolkit 指南',
description: '「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。',
},
'/en/': {
lang: 'en',
title: 'Watt Toolkit Guide',
description: 'Watt Toolkit" is an open source cross-platform multi-purpose game toolkit',
},
},

theme,

Expand Down
40 changes: 20 additions & 20 deletions docs/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,33 @@ export default hopeTheme({

pageInfo: ["Author", "Original", "Date", "Category", "Tag", "ReadingTime"],

// locales: {
// "/en/": {
// navbar: enNavbar,
// sidebar: enSidebar,
locales: {
"/en/": {
navbar: enNavbar,
sidebar: enSidebar,

// footer: '"Watt Toolkit" is an open source cross-platform multi-purpose game toolkit',
footer: '"Watt Toolkit" is an open source cross-platform multi-purpose game toolkit',

// displayFooter: true,
displayFooter: true,

// // metaLocales: {
// // editLink: "Edit this page on GitHub",
// // },
// },
// metaLocales: {
// editLink: "Edit this page on GitHub",
// },
},

// "/zh/": {
// navbar: zhNavbar,
// sidebar: zhSidebar,
"/zh/": {
navbar: zhNavbar,
sidebar: zhSidebar,

// footer: "「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。",
footer: "「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。",

// displayFooter: true,
displayFooter: true,

// // metaLocales: {
// // editLink: "在 GitHub 上编辑此页",
// // },
// },
// },
// metaLocales: {
// editLink: "在 GitHub 上编辑此页",
// },
},
},

plugins: {
comment: {
Expand Down

0 comments on commit 2498946

Please sign in to comment.