Closed vprodus closed 1 month ago
const i18n = createI18n({ locale: 'ja', fallbackLocale: 'en', messages: { en: { message: { hello: 'hello world' } }, ja: { message: { hello: 'こんにちは、世界' } } } })
const i18n = createI18n({
locale: 'ja',
fallbackLocale: 'en',
messages: {
en: {
message: {
hello: 'hello world'
}
},
ja: {
hello: 'こんにちは、世界'
})
const initializeApp = context => { // initializeVueApp is a default function creating and initializing LiveVue App const app = initializeVueApp(context) // you can initialize additional plugins here, eg. Pinia app.use(pinia) app.use(i18n) return app }
const initializeApp = context => {
// initializeVueApp is a default function creating and initializing LiveVue App
const app = initializeVueApp(context)
// you can initialize additional plugins here, eg. Pinia
app.use(pinia)
app.use(i18n)
return app
doesn't work for me
What does it mean doesn't work? Could you give more details? Are you sure app.use is called? (eg add console log)
I don't have enough details here. Closing for now @vprodus, will reopen if you'll write more
const i18n = createI18n({
locale: 'ja',
fallbackLocale: 'en',
messages: {
en: {
message: {
hello: 'hello world'
}
},
ja: {
message: {
hello: 'こんにちは、世界'
}
}
}
})
const initializeApp = context => {
// initializeVueApp is a default function creating and initializing LiveVue App
const app = initializeVueApp(context)
// you can initialize additional plugins here, eg. Pinia
app.use(pinia)
app.use(i18n)
return app
}
doesn't work for me