Integrate i18n
This commit is contained in:
15
src/i18n.js
Normal file
15
src/i18n.js
Normal 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;
|
||||
Reference in New Issue
Block a user