Add Vazirmatn font files and CSS definitions for multiple font weights

This commit is contained in:
2025-06-08 10:05:37 +03:30
parent 12775285ec
commit 929960b26f
15 changed files with 182 additions and 112 deletions
+3 -3
View File
@@ -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 />