Primo Committ
This commit is contained in:
0
src/plugins/.gitkeep
Normal file
0
src/plugins/.gitkeep
Normal file
7
src/plugins/aggiuntivi.js
Normal file
7
src/plugins/aggiuntivi.js
Normal file
@@ -0,0 +1,7 @@
|
||||
// import something here
|
||||
import Vuelidate from 'vuelidate'
|
||||
|
||||
// leave the export, even if you don't use it
|
||||
export default ({ app, router, Vue }) => {
|
||||
Vue.use(Vuelidate);
|
||||
}
|
||||
17
src/plugins/i18n.js
Normal file
17
src/plugins/i18n.js
Normal file
@@ -0,0 +1,17 @@
|
||||
// src/plugins/i18n.js
|
||||
import VueI18n from 'vue-i18n';
|
||||
import messages from 'src/i18n';
|
||||
|
||||
export default ({ app, store, Vue }) => {
|
||||
Vue.use(VueI18n);
|
||||
Vue.config.lang = 'it';
|
||||
|
||||
console.log("PLUGINS INIT....");
|
||||
|
||||
// Set i18n instance on app
|
||||
app.i18n = new VueI18n({
|
||||
locale: 'it',
|
||||
fallbackLocale: 'it',
|
||||
messages
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user