Add i18n fallback and outdated warning, second attempt (#531)

This commit is contained in:
mmmray
2024-07-16 11:41:40 +02:00
committed by GitHub
parent 1db2e57990
commit 3c07ea5213
4 changed files with 72 additions and 0 deletions
+15
View File
@@ -10,6 +10,7 @@ import process from 'node:process'
// import { getDirname, path } from '@vuepress/utils'
import { getDirname, path } from 'vuepress/utils'
import { MermaidPlugin } from './plugins/mermaid/node/mermaid'
import i18nPlugin from "vuepress-plugin-i18n";
const __dirname = getDirname(import.meta.url)
console.log('>>> __dirname -> ', __dirname)
@@ -25,6 +26,20 @@ console.log(
export default defineUserConfig(<UserConfig>{
plugins: [
i18nPlugin({
updatedTime: "git",
locales: {
en: {
lang: "en-US",
untranslated: {
title: "Untranslated"
},
outdated: {
title: "Outdated"
}
}
}
}),
searchPlugin({
locales: {
"/": {