From a2fc157ae9cdd9aa217b4c5554cfb682fa096730 Mon Sep 17 00:00:00 2001 From: beery Date: Mon, 15 Nov 2021 13:57:49 +0100 Subject: [PATCH] Fix default language in storybook preview --- packages/designmanual/.storybook/preview-head.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/designmanual/.storybook/preview-head.html b/packages/designmanual/.storybook/preview-head.html index 69110847ca..9e0236a214 100644 --- a/packages/designmanual/.storybook/preview-head.html +++ b/packages/designmanual/.storybook/preview-head.html @@ -55,4 +55,7 @@ window.MathJax.Hub.Config({ showMathMenu: false, }); + // Since the is static in storybook, we must set it this way to make i18n default to 'nb' + // See https://github.com/storybookjs/storybook/issues/11706 + document.documentElement.setAttribute('lang', 'nb');