diff options
author | Sebastian <sebasjm@gmail.com> | 2022-03-29 00:45:17 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-03-29 00:45:17 -0300 |
commit | be489b6b3ea4214f546dfc33d6bb0f39ce82b5ab (patch) | |
tree | 3b95934921172f58535ac83a58aabdf6f092929e /packages/taler-wallet-webextension/src/stories.tsx | |
parent | 47f51ced7f6180fcb6a7cf2f543cbb7782383fab (diff) | |
download | wallet-core-be489b6b3ea4214f546dfc33d6bb0f39ce82b5ab.tar.gz wallet-core-be489b6b3ea4214f546dfc33d6bb0f39ce82b5ab.tar.bz2 wallet-core-be489b6b3ea4214f546dfc33d6bb0f39ce82b5ab.zip |
remove storybook
Diffstat (limited to 'packages/taler-wallet-webextension/src/stories.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/stories.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/stories.tsx b/packages/taler-wallet-webextension/src/stories.tsx index 531425bc9..10c903ae6 100644 --- a/packages/taler-wallet-webextension/src/stories.tsx +++ b/packages/taler-wallet-webextension/src/stories.tsx @@ -35,8 +35,13 @@ import * as mui from "./mui/index.stories.js"; import { PopupNavBar, WalletNavBar } from "./NavigationBar.js"; import * as popup from "./popup/index.stories.js"; import * as wallet from "./wallet/index.stories.js"; +import * as components from "./components/index.stories.js"; +import { strings } from "./i18n/strings.js"; -setupI18n("en", { en: {} }); +const url = new URL(window.location.href); +const lang = url.searchParams.get("lang") || "en"; + +setupI18n(lang, strings); const Page = styled.div` * { @@ -107,7 +112,7 @@ function parseExampleImport(group: string, im: any): ComponentItem { }; } -const allExamples = Object.entries({ popup, wallet, mui }).map( +const allExamples = Object.entries({ popup, wallet, mui, components }).map( ([title, value]) => ({ title, list: value.default.map((s) => parseExampleImport(title, s)), |