Skip to content

Commit c93e87b

Browse files
committed
chore: use DEFAULT_LOCALE constant
1 parent 6bf0181 commit c93e87b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/[locale]/developers/tutorials/_components/tutorials.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ import {
3434

3535
import externalTutorials from "@/data/externalTutorials.json"
3636

37+
import { DEFAULT_LOCALE } from "@/lib/constants"
38+
3739
import { useBreakpointValue } from "@/hooks/useBreakpointValue"
3840

3941
type LinkFlexProps = FlexProps & {
@@ -93,7 +95,7 @@ const TutorialPage = ({
9395
contentNotTranslated,
9496
}: TutorialPageProps) => {
9597
const locale = useLocale()
96-
const effectiveLocale = internalTutorials.length > 0 ? locale : "en"
98+
const effectiveLocale = internalTutorials.length > 0 ? locale : DEFAULT_LOCALE
9799
const filteredTutorialsByLang = useMemo(
98100
() =>
99101
filterTutorialsByLang(

0 commit comments

Comments
 (0)