How to use the vee-validate/dist/locale/es.messages function in vee-validate

To help you get started, we’ve selected a few vee-validate examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github corpus-christi / corpus-christi / ui / src / plugins / vue-i18n.js View on Github external
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;