Add Vazirmatn font files and CSS definitions for multiple font weights
This commit is contained in:
@@ -19,18 +19,18 @@ export default async function RootLayout({
|
||||
}>) {
|
||||
const locale = params.locale;
|
||||
|
||||
const fontClass = locale === 'fa' ? 'font-fa' : 'font-en';
|
||||
|
||||
let messages;
|
||||
try {
|
||||
messages = (await import(`../../../messages/${locale}.json`)).default;
|
||||
console.log('locale');
|
||||
console.log(locale);
|
||||
} catch (error) {
|
||||
notFound();
|
||||
}
|
||||
|
||||
return (
|
||||
<html lang={locale} dir={locale === 'fa' ? 'rtl' : 'ltr'}>
|
||||
<body className="min-h-svh w-full overflow-x-hidden">
|
||||
<body className={`min-h-svh w-full overflow-x-hidden ${fontClass}`}>
|
||||
<NextIntlClientProvider locale={locale} messages={messages}>
|
||||
{children}
|
||||
<Footer />
|
||||
|
||||
Reference in New Issue
Block a user