Cleanup stuff

This commit is contained in:
Daniel Egger 2023-07-07 18:10:51 +02:00
parent eedf0df74f
commit 6d0362670e
5 changed files with 5 additions and 17 deletions

View File

@ -1,16 +1,9 @@
import { Preview, setup } from "@storybook/vue3";
import { createI18n } from "vue-i18n";
import de from "../src/locales/de/translation.json";
import "../tailwind.css";
import { withVueRouter } from "./mockRouter";
setup((app) => {
const i18n = createI18n({
locale: "de", // set locale
messages: { de },
});
withVueRouter(app);
app.use(i18n);
});
const preview: Preview = {

View File

@ -240,4 +240,4 @@
"settings": {
"emailNotifications": "Email Benachrichtigungen"
}
}
}

View File

@ -247,4 +247,4 @@
"settings": {
"emailNotifications": "Notifications par e-mail"
}
}
}

View File

@ -247,4 +247,4 @@
"settings": {
"emailNotifications": "Notifiche e-mail"
}
}
}

View File

@ -1,9 +1,8 @@
import { fileURLToPath, URL } from "url";
import alias from "@rollup/plugin-alias";
import vue from "@vitejs/plugin-vue";
import { defineConfig, loadEnv } from "vite";
// import vueI18n from '@intlify/vite-plugin-vue-i18n'
import alias from "@rollup/plugin-alias";
// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
@ -33,11 +32,7 @@ export default defineConfig(({ mode }) => {
// ]
}),
],
define: {
__VUE_I18N_FULL_INSTALL__: true,
__VUE_I18N_LEGACY_API__: false,
__INTLIFY_PROD_DEVTOOLS__: false,
},
define: {},
server: {
port: 5173,
hmr: { port: 5173 },