Skip to content
This repository was archived by the owner on Jul 11, 2019. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 78c3adb

Browse files
committedAug 25, 2018
Move vee validate dictionary
1 parent 1c709b7 commit 78c3adb

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed
 

‎src/locale/vee-validate/dictionary.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export default {
2+
pt_BR: {
3+
attributes: {
4+
startDate: "Data de início",
5+
startTime: "Hora de início",
6+
endDate: "Data de término",
7+
endTime: "Hora de término",
8+
title: "Título",
9+
subTitle: "Subtítulo",
10+
description: "Descrição",
11+
content: "Conteúdo"
12+
}
13+
}
14+
};

‎src/locale/veeValidateDisctionay.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎src/main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ import "vuetify/dist/vuetify.min.css";
44

55
import Vue from "vue";
66
import Vuetify from "vuetify";
7-
import ptBRLocale from "vee-validate/dist/locale/pt_BR";
87
import VeeValidate, { Validator } from "vee-validate";
8+
import ptBRLocale from "vee-validate/dist/locale/pt_BR";
9+
10+
import veeValidateDictionary from "@/locale/vee-validate/dictionary";
911

1012
import App from "@/App.vue";
1113
import router from "@/router/router";
@@ -17,6 +19,7 @@ import { setOnAuthStateChangedListener } from "@/firebase/auth";
1719
Vue.use(Vuetify, { theme: colors });
1820

1921
Validator.localize("pt_BR", ptBRLocale);
22+
Validator.localize("pt_BR", veeValidateDictionary.pt_BR);
2023

2124
Vue.use(VeeValidate);
2225

0 commit comments

Comments
 (0)