mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-09-26 08:18:13 +03:00
Add i18n fallback and outdated warning, second attempt (#531)
This commit is contained in:
@@ -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: {
|
||||
"/": {
|
||||
|
||||
Reference in New Issue
Block a user