vuetify-nuxt-module
Version:
Zero-Config Nuxt Module for Vuetify
15 lines (14 loc) • 411 B
JavaScript
import { createAdapter } from "./i18n.js";
import { defineNuxtPlugin } from "#imports";
export default defineNuxtPlugin({
name: "vuetify:i18n:plugin",
order: -25,
// @ts-expect-error i18n plugin missing on build time
dependsOn: ["i18n:plugin"],
parallel: true,
setup(nuxtApp) {
nuxtApp.hook("vuetify:configuration", ({ vuetifyOptions }) => {
createAdapter(vuetifyOptions);
});
}
});