mbcp/docs/.vitepress/theme/index.ts

29 lines
543 B
TypeScript
Raw Normal View History

2024-08-31 07:31:06 +08:00
import DefaultTheme from 'vitepress/theme-without-fonts'
2024-09-06 15:42:16 +08:00
import Theme from 'vitepress/theme'
import {createI18n} from 'vue-i18n'
2024-08-31 07:31:06 +08:00
import './fonts.css'
2024-09-06 15:42:16 +08:00
const i18n = createI18n({
// something vue-i18n options here ..
messages: {
en: {
tip: "TIP",
},
ja: {
tip: "ヒント",
},
zh: {
tip: "提示",
},
zht: {
tip: "提示",
}
}
})
export default {
extends: Theme,
enhanceApp({app}) {
app.use(i18n)
}
}