Skip to content

Commit 9e2880b

Browse files
committed
feat: add storybook 9 support
1 parent 0c420bd commit 9e2880b

File tree

7 files changed

+4007
-6383
lines changed

7 files changed

+4007
-6383
lines changed

.storybook/main.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
import type { StorybookConfig } from "@storybook/react-vite";
1+
import type {StorybookConfig} from '@storybook/react-vite';
22
const config: StorybookConfig = {
3-
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
3+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
44
addons: [
5-
"@storybook/addon-links",
6-
"@storybook/addon-essentials",
7-
"@storybook/addon-interactions",
8-
"./local-preset.js",
5+
'@storybook/addon-links',
6+
'@storybook/addon-essentials',
7+
'@storybook/addon-interactions',
8+
'./local-preset.js',
99
],
1010
framework: {
11-
name: "@storybook/react-vite",
11+
name: '@storybook/react-vite',
1212
options: {},
1313
},
14-
docs: {
15-
autodocs: "tag",
16-
},
1714
};
1815
export default config;

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
Easy react-i18next Storybook integration.
44

55
Required Peer Dependencies:
6-
* storybook - `^8.2.0`
7-
* i18next - `^22.0.0 || ^23.0.0 || ^24.0.0`
6+
* Version 4.x - storybook - `^9.0.0`
7+
* Version 3.x - storybook - `^8.0.0`
8+
9+
* i18next - `^22.0.0 || ^23.0.0 || ^24.0.0 || ^25.0.0`
810
* i18next-browser-languagedetector - `^7.0.0 || ^8.0.0`
911
* i18next-http-backend: `^2.0.0 || ^3.0.0`
1012
* react-i18next - `^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0`

0 commit comments

Comments
 (0)