/**
 * plugins/vuetify.ts
 *
 * Framework documentation: https://vuetifyjs.com`
 */

// Styles
import '@mdi/font/css/materialdesignicons.css'
import 'vuetify/styles'

// Composables
import { createVuetify } from 'vuetify'

// Locales
import { ru, en } from 'vuetify/locale'
import ruLocal from '../locales/ru'
import enLocal from '../locales/en'

// https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides
export default createVuetify({
  theme: {
    defaultTheme: 'dark',
  },
  locale: {
    locale: 'ru',
    fallback: 'en',
    messages: {
      en: {
        ...en,
        ...enLocal,
      },
      ru: {
        ...ru,
        ...ruLocal,
      },
    },
  },
})
