goooseman / storybook-addon-i18n

Storybook I18n Addon can be used to change locale of the component inside the preview in storybook
34 stars 3 forks source link

How to render components with 2 or more locales in the same story? #24

Open virajkulkarni14 opened 3 years ago

virajkulkarni14 commented 3 years ago

Hi @goooseman!

Thank you for creating this really nifty add-on. I have the following use case:

In a single story, render a list of components in a table. In one column render them as LTR, in the other column render them as RTL. As you might have already guessed, this is to offer the viewers a side-by-side comparison of how a component might render in LTR v/s RTL.

  1. Is this possible?
  2. How would I go about implementing it using this add-on?

Any help/pointers are much appreciated. Thank you for your time!