UNPKG

@modyo/cli

Version:

Modyo Command Line Interface

30 lines (26 loc) 592 B
/* eslint import/no-unresolved: [0] */ /* eslint no-new: [0] */ import Vue from 'vue'; import App from './App'; import store from './store'; import '../shared/vue_filters'; const dictionary = { es: { messages: { max_value(field, value) { const ammount = new Vue().$options.filters.currency(value); return `El campo ${field} debe de ser ${ammount} o menor.`; }, }, }, }; VeeValidate.Validator.extend('rut', RutValidator); Vue.use(VeeValidate, { locale: 'es', dictionary, }); new Vue({ el: '#{{widget_key}}', store, render: h => h(App), });