diff options
Diffstat (limited to 'packages/taler-wallet-webextension/.storybook')
-rw-r--r-- | packages/taler-wallet-webextension/.storybook/preview.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/taler-wallet-webextension/.storybook/preview.js b/packages/taler-wallet-webextension/.storybook/preview.js index c5740261a..e669398db 100644 --- a/packages/taler-wallet-webextension/.storybook/preview.js +++ b/packages/taler-wallet-webextension/.storybook/preview.js @@ -14,7 +14,8 @@ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -import * as core from "@gnu-taler/taler-wallet-core"; +import { setupI18n } from "@gnu-taler/taler-util" +import { strings } from '../src/i18n' const mockConfig = { backendURL: 'http://demo.taler.net', @@ -45,8 +46,8 @@ export const globalTypes = { export const decorators = [ (Story, { globals }) => { - core.setupI18n(globals.locale); + setupI18n(globals.locale, strings); return <Story /> }, -// (Story) => <ConfigContextProvider value={mockConfig}> <Story /> </ConfigContextProvider> + // (Story) => <ConfigContextProvider value={mockConfig}> <Story /> </ConfigContextProvider> ]; |