We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecca401 commit f21f016Copy full SHA for f21f016
src/pages/developers/tutorials.tsx
@@ -144,10 +144,11 @@ const TutorialPage = ({
144
internalTutorials,
145
contentNotTranslated,
146
}: InferGetServerSidePropsType<typeof getStaticProps>) => {
147
- const { locale } = useRouter()
+ let { locale } = useRouter()
148
const { flipForRtl } = useRtlFlip()
149
const tableBoxShadow = useToken("colors", "tableBoxShadow")
150
const cardBoxShadow = useToken("colors", "cardBoxShadow")
151
+ if (internalTutorials.length === 0) locale = "en"
152
const filteredTutorialsByLang = useMemo(
153
() =>
154
filterTutorialsByLang(
0 commit comments