Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Vue.use(VueI18n);
const i18n = new VueI18n({
locale: "es-EC",
fallbackLocale: "en-US",
messages: i18n_data,
silentTranslationWarn: true // Let warnings through.
});
Vue.use(VeeValidate, {
i18n,
i18nRootKey: "i18n_data",
dictionary: {
"en-US": {
messages: enValidation.messages,
attributes: i18n_data["en-US"].validation.attributes
},
"es-EC": {
messages: esValidation.messages,
attributes: i18n_data["es-EC"].validation.attributes
}
}
});
export default i18n;