Refactor site hero and localized branding UI
This commit is contained in:
@@ -34,10 +34,13 @@ export default async function LocaleLayout({
|
||||
setRequestLocale(locale);
|
||||
|
||||
const messages = await getMessages();
|
||||
const localeClassName = locale === "ar" ? "font-arabic" : "font-latin";
|
||||
|
||||
return (
|
||||
<NextIntlClientProvider messages={messages}>
|
||||
<div lang={locale} dir={getDirection(locale)}>{children}</div>
|
||||
<div lang={locale} dir={getDirection(locale)} className={localeClassName}>
|
||||
{children}
|
||||
</div>
|
||||
</NextIntlClientProvider>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user