added babel and INCORRECT vue-flag-icon type definitions -> disabled check (js lib instead of ts)
This commit is contained in:
31
src/plugins/i18n.ts
Normal file
31
src/plugins/i18n.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import Vue from 'vue';
|
||||
import VueI18n from 'vue-i18n';
|
||||
|
||||
Vue.use(VueI18n);
|
||||
|
||||
|
||||
const messages = {
|
||||
en: {
|
||||
welcomeMsg: 'Welcome to Your Vue.js + TypeScript App',
|
||||
guide: 'For a guide and recipes on how to configure / customize this project,',
|
||||
checkout: 'check out the',
|
||||
plugins: 'Installed CLI Plugins',
|
||||
links: 'Essential Links',
|
||||
ecosystem: 'Ecosystem',
|
||||
},
|
||||
es: {
|
||||
welcomeMsg: 'Bienvenido a tu aplicación Vue.js + TypeScript',
|
||||
guide: 'Para una guía y recetas sobre cómo configurar / personalizar este proyecto,',
|
||||
checkout: 'revisar la',
|
||||
plugins: 'Plugins de CLI instalados',
|
||||
links: 'Enlaces esenciales',
|
||||
ecosystem: 'Ecosistema',
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
export default new VueI18n({
|
||||
locale: 'en', // set locale
|
||||
fallbackLocale: 'es', // set fallback locale
|
||||
messages, // set locale messages
|
||||
});
|
||||
Reference in New Issue
Block a user