storybook-addon-i18n-tools
v1.0.0
Published
Internationalization tools addon for storybook
Downloads
23
Readme
I18n Toolbox Storybook Add-on
The i18n toolbox addon can be used to swap text direction in stories. This addon works with React Storybook.
Getting Started
First, install the addon
npm install -D storybook-addon-i18n-tools
Add this line to your addons.js
file (create this file inside your storybook config directory if needed).
import 'storybook-addon-i18n-tools/register';
Import the addon in your storybook config to initialize it.
import { storiesOf } from '@kadira/storybook'
import 'storybook-addon-i18n-tools'
storiesOf('Some component', module)
.add('some view', () => (
<button>
I will change text direction
</button>
));