mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-27 16:09:01 +03:00
16 lines
290 B
TypeScript
16 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);
|
|
},
|
|
};
|