Integrate i18n

This commit is contained in:
Dominic Villemure
2024-08-20 21:59:55 -04:00
parent 7b603f4eb2
commit c0bc147b00
8 changed files with 213 additions and 1 deletions

15
src/i18n.js Normal file
View File

@@ -0,0 +1,15 @@
import { createI18n } from 'vue-i18n';
import en from './locales/en.json';
import fr from './locales/fr.json';
const messages = {
en,
fr,
};
const i18n = createI18n({
legacy: false,
locale: 'en',
fallbackLocale: 'en',
messages,
});
export default i18n;