You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
340 B
19 lines
340 B
import { createI18n } from 'vue-i18n'
|
|
import zh from './lang/zh.json'
|
|
import tw from './lang/tw.json'
|
|
import en from './lang/en.json'
|
|
import type { App } from 'vue'
|
|
|
|
export const i18n = createI18n({
|
|
locale: 'zh',
|
|
fallbackLocale: 'en',
|
|
messages: {
|
|
zh,
|
|
tw,
|
|
en
|
|
}
|
|
})
|
|
|
|
export function setupI18n(app: App) {
|
|
app.use(i18n)
|
|
}
|
|
|