You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

storybook-addon-intl

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storybook-addon-intl - npm Package Compare versions

Comparing version

to
3.2.0

@@ -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",