2022-12-20 11:00:36 +00:00
|
|
|
import { boot } from 'quasar/wrappers';
|
|
|
|
import { createI18n } from 'vue-i18n';
|
|
|
|
import messages from 'src/i18n';
|
|
|
|
|
2022-12-20 11:30:25 +00:00
|
|
|
const i18n = createI18n({
|
2023-03-02 07:29:38 +00:00
|
|
|
locale: navigator.language || navigator.userLanguage,
|
2022-12-20 11:30:25 +00:00
|
|
|
fallbackLocale: 'en',
|
|
|
|
globalInjection: true,
|
|
|
|
messages,
|
|
|
|
missingWarn: false,
|
2023-02-23 05:21:51 +00:00
|
|
|
fallbackWarn: false,
|
2022-12-22 12:46:43 +00:00
|
|
|
legacy: false,
|
2022-12-20 11:30:25 +00:00
|
|
|
});
|
2022-12-20 11:00:36 +00:00
|
|
|
|
2022-12-20 11:30:25 +00:00
|
|
|
export default boot(({ app }) => {
|
2022-12-20 11:00:36 +00:00
|
|
|
// Set i18n instance on app
|
|
|
|
app.use(i18n);
|
|
|
|
});
|
2022-12-20 11:30:25 +00:00
|
|
|
|
|
|
|
export { i18n };
|