chore(storybook): next-intl Locale type

This commit is contained in:
Théo LUDWIG 2024-08-25 02:00:02 +02:00
parent 92787448bb
commit eba92ed64b
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B
4 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,7 @@
import "@repo/config-tailwind/styles.css" 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 i18nMessagesEnglish from "@repo/i18n/translations/en-US.json"
import type { Locale } from "@repo/utils/constants"
import type { Preview } from "@storybook/react" import type { Preview } from "@storybook/react"
import { NextIntlClientProvider } from "next-intl" import { NextIntlClientProvider } from "next-intl"
import { ThemeProvider as NextThemeProvider } from "next-themes" import { ThemeProvider as NextThemeProvider } from "next-themes"

View File

@ -5,7 +5,6 @@ import { checkA11y, configureAxe, injectAxe } from "axe-playwright"
/* /*
* See https://storybook.js.org/docs/writing-tests/test-runner#test-hook-api * 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 = { const config: TestRunnerConfig = {
async preVisit(page) { async preVisit(page) {

View File

@ -16,6 +16,7 @@
"@repo/config-tailwind": "workspace:*", "@repo/config-tailwind": "workspace:*",
"@repo/i18n": "workspace:*", "@repo/i18n": "workspace:*",
"@repo/ui": "workspace:*", "@repo/ui": "workspace:*",
"@repo/utils": "workspace:*",
"@repo/wikipedia-game-solver": "workspace:*", "@repo/wikipedia-game-solver": "workspace:*",
"next": "catalog:", "next": "catalog:",
"next-intl": "catalog:", "next-intl": "catalog:",

3
pnpm-lock.yaml generated
View File

@ -432,6 +432,9 @@ importers:
'@repo/ui': '@repo/ui':
specifier: workspace:* specifier: workspace:*
version: link:../../packages/ui version: link:../../packages/ui
'@repo/utils':
specifier: workspace:*
version: link:../../packages/utils
'@repo/wikipedia-game-solver': '@repo/wikipedia-game-solver':
specifier: workspace:* specifier: workspace:*
version: link:../../packages/wikipedia-game-solver version: link:../../packages/wikipedia-game-solver