diff options
| author | Ahmad Mujahid <55625580+AhmadMuj@users.noreply.github.com> | 2025-02-09 15:16:13 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-09 11:16:13 +0000 |
| commit | f6cdcc09ca73ce45929b0f019d83de09dd3dc89b (patch) | |
| tree | 3baa00c7dc02426fb97b1a784e5a492b1cadbb3f /apps/web/app | |
| parent | ccd9159ba80d87a5cf1d80544f23faf69d93b1af (diff) | |
| download | karakeep-f6cdcc09ca73ce45929b0f019d83de09dd3dc89b.tar.zst | |
feat(i18n): add Arabic language support (#983)
Diffstat (limited to 'apps/web/app')
| -rw-r--r-- | apps/web/app/layout.tsx | 4 |
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} |
