* feat: introduced new unplugin i18n and removed the old vite i18n package * refactor: updated vite config to support the new plugin * refactor: removed irrelevant logic from the i18n module
17 lines
363 B
TypeScript
17 lines
363 B
TypeScript
import { createI18n } from 'vue-i18n';
|
|
import { HoppModule } from '.';
|
|
import messages from '@intlify/unplugin-vue-i18n/messages';
|
|
|
|
export default <HoppModule>{
|
|
onVueAppInit(app) {
|
|
const i18n = createI18n({
|
|
locale: 'en',
|
|
messages,
|
|
fallbackLocale: 'en',
|
|
legacy: false,
|
|
allowComposition: true,
|
|
});
|
|
app.use(i18n);
|
|
},
|
|
};
|