constants.mjs |
|
971 |
index.mjs |
This file hooks our addon into Storybook. Having a root-level file like this
is a Storybook requirement. It handles registering the addon without any
additional user configuration.
|
657 |
preset |
|
|
withPseudoLocalization.mjs |
withPseudoLocalization is a Storybook decorator that handles emitting an
event to update translations when a new pseudo localization strategy is
applied. It also handles setting a "dir" attribute on the root element in the
Storybook iframe.
@param {Function} StoryFn - Provided by Storybook, used to render the story.
@param {object} context - Provided by Storybook, data about the story.
@returns {Function} StoryFn with a modified "dir" attr set.
|
2980 |