mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-23 16:26:15 -04:00
15 lines
290 B
TypeScript
15 lines
290 B
TypeScript
import type { App } from 'vue';
|
|
import { createI18n } from 'vue-i18n';
|
|
import messages from '@intlify/unplugin-vue-i18n/messages';
|
|
|
|
const i18n = createI18n({
|
|
legacy: false,
|
|
locale: 'en',
|
|
messages,
|
|
});
|
|
|
|
export const i18nPlugin = {
|
|
install: (app: App) => {
|
|
app.use(i18n);
|
|
},
|
|
};
|