1.0.0 • Published 8 years ago

storybook-addon-i18n-tools v1.0.0

Weekly downloads
15
License
MIT
Repository
github
Last release
8 years ago

I18n Toolbox Storybook Add-on

semantic-release Commitizen friendly

The i18n toolbox addon can be used to swap text direction in stories. This addon works with React Storybook.

Screenshot of the add-on

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>
  ));