21 lines
445 B
JavaScript
21 lines
445 B
JavaScript
import { boot } from 'quasar/wrappers';
|
|
import { createI18n } from 'vue-i18n';
|
|
import messages from 'src/i18n';
|
|
|
|
const i18n = createI18n({
|
|
locale: navigator.language || navigator.userLanguage,
|
|
fallbackLocale: 'en',
|
|
globalInjection: true,
|
|
messages,
|
|
missingWarn: false,
|
|
fallbackWarn: false,
|
|
legacy: false,
|
|
});
|
|
|
|
export default boot(({ app }) => {
|
|
// Set i18n instance on app
|
|
app.use(i18n);
|
|
});
|
|
|
|
export { i18n };
|