Skip to content

Commit 9878674

Browse files
committed
get locale from useLocale
1 parent 93bbf0f commit 9878674

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/[locale]/start/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { GetStaticProps } from "next"
22
import dynamic from "next/dynamic"
3-
import { useRouter } from "next/router"
3+
import { useLocale } from "next-intl"
44
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
55

66
import { BasePageProps, Lang, Wallet } from "@/lib/types"
@@ -72,11 +72,11 @@ const StartWithCryptoPage = ({
7272
}: {
7373
newToCryptoWallets: Wallet[]
7474
}) => {
75-
const router = useRouter()
75+
const locale = useLocale()
7676

7777
return (
7878
<QueryClientProvider client={queryClient}>
79-
<WalletProviders locale={router.query.locale as string}>
79+
<WalletProviders locale={locale}>
8080
<MainArticle className="flex w-full flex-col items-center overflow-x-hidden">
8181
<PageMetadata
8282
title={"Start with crypto"}

0 commit comments

Comments
 (0)