mirror of
https://github.com/unraid/api.git
synced 2026-04-22 15:21:30 -05:00
feat: basic vue-i18n
This commit is contained in:
@@ -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);
|
||||
});
|
||||
Reference in New Issue
Block a user