Valian / live_vue

End-to-end reactivity for Phoenix LiveView and Vue
https://hex.pm/packages/live_vue
MIT License
219 stars 11 forks source link

Is it possible to use vue-i18n with the library? #17

Closed vprodus closed 1 month ago

vprodus commented 3 months ago

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

Valian commented 3 months ago

What does it mean doesn't work? Could you give more details? Are you sure app.use is called? (eg add console log)

Valian commented 1 month ago

I don't have enough details here. Closing for now @vprodus, will reopen if you'll write more