Skip to content

Add placeholder of the i18n config for translations #2028

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import baseConfig from '@vue/theme/config'
import { headerPlugin } from './headerMdPlugin'
import { jobsPlugin } from './jobsMdPlugin'

const nav = [
const nav: ThemeConfig['nav'] = [
{
text: 'Docs',
activeMatch: `^/(guide|style-guide|cookbook|examples)/`,
Expand Down Expand Up @@ -123,7 +123,7 @@ const nav = [
}
]

export const sidebar = {
export const sidebar: ThemeConfig['sidebar'] = {
'/guide/': [
{
text: 'Getting Started',
Expand Down Expand Up @@ -551,6 +551,10 @@ export const sidebar = {
]
}

// Placeholder of the i18n config for @vuejs-translations.
// const i18n: ThemeConfig['i18n'] = {
// }

export default defineConfigWithTheme<ThemeConfig>({
extends: baseConfig,

Expand Down Expand Up @@ -601,6 +605,8 @@ export default defineConfigWithTheme<ThemeConfig>({
themeConfig: {
nav,
sidebar,
// Placeholder of the i18n config for @vuejs-translations.
// i18n,

algolia: {
indexName: 'vuejs',
Expand Down