Add i18n and Chinese translation

This commit is contained in:
vickyhella
2022-09-13 22:51:43 +08:00
parent 872809ba37
commit 4d88df32b1
453 changed files with 47673 additions and 0 deletions
+16
View File
@@ -11,6 +11,18 @@ module.exports = {
organizationName: 'rancher', // Usually your GitHub org/user name.
projectName: 'rancher-docs', // Usually your repo name.
trailingSlash: false,
i18n: {
defaultLocale: "en",
locales: ["en", "zh"],
localeConfigs: {
en: {
label: "English",
},
zh: {
label: "简体中文",
},
},
},
themeConfig: {
algolia: {
// The application ID provided by Algolia
@@ -58,6 +70,10 @@ module.exports = {
label: 'Docs',
className: 'navbar__docs',
},
{
type: "localeDropdown",
position: "right",
},
{
href: 'https://github.com/rancher/',
label: 'GitHub',