From eba92ed64bca964a89b0c76f058ff293f2672c60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Sun, 25 Aug 2024 02:00:02 +0200 Subject: [PATCH] chore(storybook): next-intl Locale type --- apps/storybook/.storybook/preview.tsx | 3 ++- apps/storybook/.storybook/test-runner.ts | 1 - apps/storybook/package.json | 1 + pnpm-lock.yaml | 3 +++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/storybook/.storybook/preview.tsx b/apps/storybook/.storybook/preview.tsx index 54777fa..df4e189 100644 --- a/apps/storybook/.storybook/preview.tsx +++ b/apps/storybook/.storybook/preview.tsx @@ -1,6 +1,7 @@ import "@repo/config-tailwind/styles.css" -import { defaultTranslationValues, Locale } from "@repo/i18n/config" +import { defaultTranslationValues } from "@repo/i18n/config" import i18nMessagesEnglish from "@repo/i18n/translations/en-US.json" +import type { Locale } from "@repo/utils/constants" import type { Preview } from "@storybook/react" import { NextIntlClientProvider } from "next-intl" import { ThemeProvider as NextThemeProvider } from "next-themes" diff --git a/apps/storybook/.storybook/test-runner.ts b/apps/storybook/.storybook/test-runner.ts index f667b46..d96b7e4 100644 --- a/apps/storybook/.storybook/test-runner.ts +++ b/apps/storybook/.storybook/test-runner.ts @@ -5,7 +5,6 @@ import { checkA11y, configureAxe, injectAxe } from "axe-playwright" /* * See https://storybook.js.org/docs/writing-tests/test-runner#test-hook-api - * to learn more about the test-runner hooks API. */ const config: TestRunnerConfig = { async preVisit(page) { diff --git a/apps/storybook/package.json b/apps/storybook/package.json index 260aced..ec368fc 100644 --- a/apps/storybook/package.json +++ b/apps/storybook/package.json @@ -16,6 +16,7 @@ "@repo/config-tailwind": "workspace:*", "@repo/i18n": "workspace:*", "@repo/ui": "workspace:*", + "@repo/utils": "workspace:*", "@repo/wikipedia-game-solver": "workspace:*", "next": "catalog:", "next-intl": "catalog:", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9e58be3..1206b95 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -432,6 +432,9 @@ importers: '@repo/ui': specifier: workspace:* version: link:../../packages/ui + '@repo/utils': + specifier: workspace:* + version: link:../../packages/utils '@repo/wikipedia-game-solver': specifier: workspace:* version: link:../../packages/wikipedia-game-solver