feat: basic vue-i18n

This commit is contained in:
Zack Spear
2023-07-26 14:51:37 -07:00
committed by Zack Spear
parent 5c7e2eb609
commit f12fc1dfa5
10 changed files with 169 additions and 14 deletions
+19
View File
@@ -0,0 +1,19 @@
import { createI18n } from 'vue-i18n';
export default defineNuxtPlugin(({ vueApp }) => {
const i18n = createI18n({
legacy: false,
globalInjection: true,
locale: 'ja',
messages: {
en: {
hello: 'Hello!'
},
ja: {
hello: 'こんにちは!'
}
}
});
vueApp.use(i18n);
});