Skip to content

Commit

Permalink
meta: made changes back
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Nov 29, 2023
1 parent 43d2e48 commit 159be16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Analytics } from '@vercel/analytics/react';
import { Source_Sans_3 } from 'next/font/google';
import { useLocale } from 'next-intl';
import { getLocale } from 'next-intl/server';
import type { FC, PropsWithChildren } from 'react';

import BaseLayout from '@/layouts/BaseLayout';
Expand All @@ -17,8 +17,8 @@ const sourceSans = Source_Sans_3({
subsets: ['latin'],
});

const RootLayout: FC<PropsWithChildren> = ({ children }) => {
const locale = useLocale();
const RootLayout: FC<PropsWithChildren> = async ({ children }) => {
const locale = await getLocale();

const { langDir, hrefLang } = availableLocalesMap[locale] || defaultLocale;

Expand Down
2 changes: 2 additions & 0 deletions app/[locale]/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import { useTranslations } from 'next-intl';
import type { FC } from 'react';

Expand Down

0 comments on commit 159be16

Please sign in to comment.