localization update

This commit is contained in:
Masterain
2023-03-20 01:14:35 -07:00
parent 3956b792f3
commit 66b2230b7f
3 changed files with 136 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ import theme from "./theme.js";
import { autoCatalogPlugin } from "vuepress-plugin-auto-catalog";
import { docsearchPlugin } from '@vuepress/plugin-docsearch'
import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics'
import { redirectPlugin } from "vuepress-plugin-redirect";
export default defineUserConfig({
base: "/",
@@ -43,7 +44,7 @@ export default defineUserConfig({
}
}
},
"en": {
"/en/": {
placeholder: "Search documents",
translations:{
button:{
@@ -55,7 +56,15 @@ export default defineUserConfig({
}),
googleAnalyticsPlugin({
id: "G-F3LFJCE3RM"
}),
redirectPlugin({
locale: true,
localeConfig: {
"/en/": ["en-US", "en-UK", "en"],
"/": ["zh-CN", "zh-TW", "zh"],
},
})
],
theme,