mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-27 05:28:22 +00:00
Add i18n and Chinese translation
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user