We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
similar to vuepress
The text was updated successfully, but these errors were encountered:
Currently, Markdown Containers' titles can be changed in a markdown option in the configuration (source), however that does not allow localisation.
markdown
https://stackblitz.com/edit/vite-cece3h?file=docs%2F.vitepress%2Fconfig.ts
.vitepress/config.ts
import { defineConfig } from 'vitepress'; export default defineConfig({ locales: { root: { label: 'English', lang: 'en', link: '/', title: 'VitePress - English', }, fr: { label: 'Français', lang: 'fr', link: '/fr/', title: 'VitePress - Français', }, }, markdown: { container: { tipLabel: 'CUSTOM TIP', }, }, });
index.md
--- layout: home hero: name: VitePress - English --- ::: tip ^^^ Not translatable ^^^ ::: ::: tip CUSTOM TIP: Title ^^^ Workaround ^^^ :::
fr/index.md
--- layout: home hero: name: VitePress - Français --- ::: tip ^^^ Intraduisible ^^^ ::: ::: tip CONSEIL PERSONNALISÉ: Titre ^^^ Solution de contournement ^^^ :::
import { defineConfig } from 'vitepress'; export default defineConfig({ locales: { root: { label: 'English', lang: 'en', link: '/', themeConfig: { markdown: { container: { tipLabel: 'CUSTOM TIP', }, }, }, title: 'VitePress - English', }, fr: { label: 'Français', lang: 'fr', link: '/fr/', themeConfig: { markdown: { container: { tipLabel: 'CONSEIL PERSONNALISÉ', }, }, }, title: 'VitePress - Français', }, }, });
Sorry, something went wrong.
No branches or pull requests
similar to vuepress
The text was updated successfully, but these errors were encountered: