mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
localization update
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
files:
|
||||
- source: /docs/*.md
|
||||
- source: /docs/zh/*.md
|
||||
translation: /docs/%two_letters_code%/%original_file_name%
|
||||
- source: /docs/features/*.md
|
||||
- source: /docs/zh/features/*.md
|
||||
translation: /docs/%two_letters_code%/features/%original_file_name%
|
||||
- source: /docs/statements/*.md
|
||||
- source: /docs/zh/statements/*.md
|
||||
translation: /docs/%two_letters_code%/statements/%original_file_name%
|
||||
- source: /docs/advanced/*.md
|
||||
- source: /docs/zh/advanced/*.md
|
||||
translation: /docs/%two_letters_code%/advanced/%original_file_name%
|
||||
|
||||
@@ -58,11 +58,13 @@ export default defineUserConfig({
|
||||
id: "G-F3LFJCE3RM"
|
||||
}),
|
||||
redirectPlugin({
|
||||
defaultLocale: "/en/",
|
||||
defaultBehavior: "defaultLocale",
|
||||
autoLocale: true,
|
||||
localeConfig: {
|
||||
"/en/": ["en-US", "en-UK", "en"],
|
||||
"/zh/": ["zh-CN", "zh-TW", "zh"],
|
||||
},
|
||||
}
|
||||
}),
|
||||
],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user