mirror of
https://github.com/snowykami/mbcp.git
synced 2024-11-28 16:15:32 +08:00
29 lines
543 B
TypeScript
29 lines
543 B
TypeScript
import DefaultTheme from 'vitepress/theme-without-fonts'
|
|
import Theme from 'vitepress/theme'
|
|
import {createI18n} from 'vue-i18n'
|
|
import './fonts.css'
|
|
|
|
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)
|
|
}
|
|
} |