feat(locales): Add multiple languages

This commit is contained in:
web@ppanel
2024-12-18 23:12:53 +07:00
parent a20834a9ac
commit b243ab9006
610 changed files with 23247 additions and 9 deletions
+2 -1
View File
@@ -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>