Skip to content

Commit

Permalink
fix: storybook - only i18nize once in preview
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart committed Jan 13, 2025
1 parent f2e4a35 commit 55b6720
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ui/.storybook/preview.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {setup} from "@storybook/vue3";
import {createI18n} from "vue-i18n";
import {withThemeByClassName} from "@storybook/addon-themes";
import initApp from "../src/utils/init";
import stores from "../src/stores/store";
Expand Down Expand Up @@ -34,15 +33,8 @@ const preview = {
]
};

const i18n = createI18n({
locale: "en",
messages: {en},
legacy: false,
});

setup((app) => {
initApp(app, [], stores, en);
app.use(i18n);
});

export default preview;

0 comments on commit 55b6720

Please sign in to comment.