Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joscha/storybook-addon-i18n-tools
A simple addon for storybook to test some i18n-related functionality
https://github.com/joscha/storybook-addon-i18n-tools
Last synced: about 2 months ago
JSON representation
A simple addon for storybook to test some i18n-related functionality
- Host: GitHub
- URL: https://github.com/joscha/storybook-addon-i18n-tools
- Owner: joscha
- Fork: true (kadirahq/storybook-addon-hello)
- Created: 2016-10-24T03:48:15.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-18T13:17:24.000Z (over 7 years ago)
- Last Synced: 2024-04-23T13:17:52.553Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 173 KB
- Stars: 9
- Watchers: 2
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# I18n Toolbox Storybook Add-on
[![Build Status](https://travis-ci.org/joscha/storybook-addon-i18n-tools.svg?branch=master)](https://travis-ci.org/joscha/storybook-addon-i18n-tools)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)The i18n toolbox addon can be used to swap text direction in stories. This addon works with [React Storybook](https://github.com/kadirahq/react-storybook).
![Screencast of the add-on](docs/animation.gif)
## Getting Started
First, install the addon
```shell
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).
```js
import 'storybook-addon-i18n-tools/register';
```Import the addon in your storybook config to initialize it:
```js
import 'storybook-addon-i18n-tools';
```## Known issues
* Toggle button state does not reset [when navigating away from the current story](https://github.com/kadirahq/react-storybook/issues/568) (PR would be 💖)