Skip to content

Commit

Permalink
Storybook: Fix i18n (#11172)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwmac authored Jun 4, 2024
1 parent e8daf98 commit 3fb0a9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions storybook/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ module.exports = {
buildStoriesJson: true, // 👈 Enable this to build the stories.json file
},

core: {
disableTelemetry: true,
},

staticDirs: [
'public',
'../../shell/assets'
Expand Down
4 changes: 3 additions & 1 deletion storybook/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ import growl from './store/growl';
import codeMirror from './store/codeMirror';
import table from './store/table';

// i18n
import i18n from '../../shell/plugins/i18n';

// Register custom i18n plugin
require('../../shell/plugins/i18n');
Vue.use(i18n);

Vue.use(Vuex);
Vue.use(ShortKey, { prevent: ['input', 'textarea', 'select'] });
Expand Down

0 comments on commit 3fb0a9c

Please sign in to comment.