aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/app/layout.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/app/layout.tsx')
-rw-r--r--apps/web/app/layout.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx
index 7d3858eb..fd2234bf 100644
--- a/apps/web/app/layout.tsx
+++ b/apps/web/app/layout.tsx
@@ -46,8 +46,10 @@ export default async function RootLayout({
children: React.ReactNode;
}>) {
const session = await getServerAuthSession();
+ const userSettings = await getUserLocalSettings();
+ const isRTL = userSettings.lang === "ar";
return (
- <html lang="en">
+ <html lang={userSettings.lang} dir={isRTL ? "rtl" : "ltr"}>
<body className={inter.className}>
<Providers
session={session}