storybook-addon-intl
Advanced tools
@@ -31,2 +31,8 @@ "use strict"; | ||
var activeLocale = (0, _getActiveLocale.getActiveLocale)(locales, intlGlobals === null || intlGlobals === void 0 ? void 0 : intlGlobals.activeLocale, intlConfig === null || intlConfig === void 0 ? void 0 : intlConfig.defaultLocale); | ||
(0, _previewApi.useEffect)(function () { | ||
if (!!error || !activeLocale) { | ||
return; | ||
} | ||
document.documentElement.lang = activeLocale; | ||
}, [activeLocale]); | ||
if (!!error || !activeLocale) { | ||
@@ -33,0 +39,0 @@ return null; |
{ | ||
"name": "storybook-addon-intl", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Addon to provide locale switcher and react-intl for storybook", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
106729
0.16%303
2.02%