Skip to content

Commit 3b928f7

Browse files
authored
add placeholder of the i18n config for translations (#2028)
1 parent 72b2033 commit 3b928f7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.vitepress/config.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import baseConfig from '@vue/theme/config'
66
import { headerPlugin } from './headerMdPlugin'
77
import { jobsPlugin } from './jobsMdPlugin'
88

9-
const nav = [
9+
const nav: ThemeConfig['nav'] = [
1010
{
1111
text: 'Docs',
1212
activeMatch: `^/(guide|style-guide|cookbook|examples)/`,
@@ -123,7 +123,7 @@ const nav = [
123123
}
124124
]
125125

126-
export const sidebar = {
126+
export const sidebar: ThemeConfig['sidebar'] = {
127127
'/guide/': [
128128
{
129129
text: 'Getting Started',
@@ -551,6 +551,10 @@ export const sidebar = {
551551
]
552552
}
553553

554+
// Placeholder of the i18n config for @vuejs-translations.
555+
// const i18n: ThemeConfig['i18n'] = {
556+
// }
557+
554558
export default defineConfigWithTheme<ThemeConfig>({
555559
extends: baseConfig,
556560

@@ -601,6 +605,8 @@ export default defineConfigWithTheme<ThemeConfig>({
601605
themeConfig: {
602606
nav,
603607
sidebar,
608+
// Placeholder of the i18n config for @vuejs-translations.
609+
// i18n,
604610

605611
algolia: {
606612
indexName: 'vuejs',

0 commit comments

Comments
 (0)