Skip to content

Instantly share code, notes, and snippets.

@fessacchiotto
Created April 26, 2022 07:57
Show Gist options
  • Save fessacchiotto/75bb787046d87d75782827dd8adc679a to your computer and use it in GitHub Desktop.
Save fessacchiotto/75bb787046d87d75782827dd8adc679a to your computer and use it in GitHub Desktop.
in /src/plugins
// Styles
import "@mdi/font/css/materialdesignicons.css";
import "vuetify/styles";
// Vuetify
import { createVuetify } from "vuetify";
import * as components from 'vuetify/components'
import * as directives from 'vuetify/directives'
import { createVueI18nAdapter } from "vuetify/locale/adapters/vue-i18n";
import { createI18n, useI18n } from "vue-i18n";
// i18n messaggi
import messages from "../../../common/messages.js";
export const i18n = new createI18n({
legacy: false, // Vuetify does not support the legacy mode of vue-i18n
locale: "it",
fallbackLocale: "en",
messages,
});
export const vuetify = createVuetify({
components,
directives,
// theme: {
// defaultTheme: "dark",
// },
locale: createVueI18nAdapter({
i18n,
useI18n,
}),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment