Can Vue and vue-i18n be used with JavaScript objects only, without being included in the template?
This code is located in src/boot/i18n.js
import { boot } from 'quasar/wrappers'
import { createI18n } from 'vue-i18n'
import messages from 'src/i18n'
export default boot(({ app }) => {
const i18n = createI18n({
locale: 'es-CO',
fallbackLocale: 'en-US',
globalInjection: true,
messages
})
// Set i18n instance on app
app.use(i18n)
})
I have created additional files like src/support/errors and utils where I need to insert messages but am unable to access i18n.
As a native Spanish speaker and junior in Quasar Vue, any help would be greatly appreciated.
Thank you.