Files
hoppscotch/packages/hoppscotch-sh-admin/src/modules/i18n.ts
Joel Jacob Stephen 6c63a8dc28 refactor: updated i18n implementation in the admin dashboard (#3395)
* 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
2023-10-06 17:36:19 +05:30

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);
},
};