diff --git a/src/components/AppLayout.tsx b/src/components/AppLayout.tsx index 5721da6..a2a68c7 100644 --- a/src/components/AppLayout.tsx +++ b/src/components/AppLayout.tsx @@ -5,7 +5,7 @@ import { useMediaMobile } from "hooks/useMediaQuery"; import Head from "next/head"; import { useRouter } from "next/router"; import { AppStaticProps } from "queries/getAppStaticProps"; -import { getOgImage, OgImage } from "queries/helpers"; +import { getOgImage, OgImage, prettyLanguage } from "queries/helpers"; import { useEffect, useState } from "react"; import { useSwipeable } from "react-swipeable"; import { ImageQuality } from "./Img"; @@ -242,15 +242,15 @@ export default function AppLayout(props: AppLayoutProps): JSX.Element { >

{langui.select_language}

- {languages.map((language) => ( + {router.locales?.map((locale) => ( ))}