✨ feat(locales): Add multiple languages
This commit is contained in:
@@ -12,6 +12,7 @@ import { cookies } from 'next/headers';
|
||||
import { Metadata, Viewport } from 'next/types';
|
||||
import NextTopLoader from 'nextjs-toploader';
|
||||
import React from 'react';
|
||||
import rtlDetect from 'rtl-detect';
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
noStore();
|
||||
@@ -80,7 +81,7 @@ export default async function RootLayout({ children }: { children: React.ReactNo
|
||||
}
|
||||
|
||||
return (
|
||||
<html suppressHydrationWarning lang={locale}>
|
||||
<html suppressHydrationWarning lang={locale} dir={rtlDetect.getLangDir(locale)}>
|
||||
<head>
|
||||
<PublicEnvScript />
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user