Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions apps/docs/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
EdificeThemeProvider,
} from '../../../packages/react/src/providers';

import i18n from '../i18n';
import React from 'react';
import i18n from '../i18n';

import {
actualitesHandlers,
Expand All @@ -20,6 +20,7 @@ import {
publicConfigHandlers,
shareHandlers,
themeHandlers,
timelineHandlers,
userbookHandlers,
wikiHandlers,
workspaceHandlers,
Expand Down Expand Up @@ -52,7 +53,7 @@ const preview: Preview = {
defaultValue: 'one',
toolbar: {
icon: 'switchalt',
items: ['one', 'neo', 'side-by-side'],
items: ['one', 'neo', 'edifice2d', 'edifice1d', 'side-by-side'],
},
},
app: {
Expand All @@ -74,6 +75,7 @@ const preview: Preview = {
'Introduction',
['Welcome', 'Getting Started', '*'],
'Design System',
'Edifice Design System',
'Components',
['Base', '*'],
'Forms',
Expand All @@ -97,6 +99,7 @@ const preview: Preview = {
blog: blogHandlers,
share: shareHandlers,
actualites: actualitesHandlers,
timeline: timelineHandlers,
},
},
},
Expand Down Expand Up @@ -131,6 +134,8 @@ const preview: Preview = {
<>
<StoryTheme themePath="one" />
<StoryTheme themePath="neo" />
<StoryTheme themePath="edifice2d" />
<StoryTheme themePath="edifice1d" />
</>
);
}
Expand All @@ -140,6 +145,12 @@ const preview: Preview = {
case 'neo': {
return <StoryTheme themePath="neo" />;
}
case 'edifice2d': {
return <StoryTheme themePath="edifice2d" />;
}
case 'edifice1d': {
return <StoryTheme themePath="edifice1d" />;
}
case 'default': {
return <StoryTheme themePath={theme} />;
}
Expand Down
6 changes: 6 additions & 0 deletions apps/docs/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,12 @@ i18n.use(initReactI18next).init({
'editor.preview.moreMedia': '+[[mediaCount]] images',
'mediaWrapper.attachment.open': 'Open link',
'mediaWrapper.attachment.download': 'Download',
//----------------- LastInfosList -----------------
'homepage.widget.last-infos-list.empty':
'Retrouvez bientôt les dernières actualités liées à votre établissement içi.',
'homepage.widget.last-infos-list.see.more': 'Voir plus',
'homepage.widget.last-infos-list.title': 'Dernières actualités',
//------------------------------------------------------
},
},
},
Expand Down
Loading
Loading