salix-front/src/boot/i18n.js

15 lines
316 B
JavaScript
Raw Normal View History

2022-12-20 11:00:36 +00:00
import { boot } from 'quasar/wrappers';
import { createI18n } from 'vue-i18n';
import messages from 'src/i18n';
export default boot(({ app }) => {
const i18n = createI18n({
locale: 'en-US',
globalInjection: true,
messages,
});
// Set i18n instance on app
app.use(i18n);
});