diff --git a/apps/frontend/src/app/(app)/auth/layout.tsx b/apps/frontend/src/app/(app)/auth/layout.tsx index c0a3b24b..a107cfd4 100644 --- a/apps/frontend/src/app/(app)/auth/layout.tsx +++ b/apps/frontend/src/app/(app)/auth/layout.tsx @@ -15,7 +15,7 @@ export default async function AuthLayout({ const t = await getT(); return ( -
+
@@ -64,7 +64,7 @@ export default async function AuthLayout({
-
+
{children}
diff --git a/apps/frontend/src/app/global.scss b/apps/frontend/src/app/global.scss index 0fb9cc84..d968196e 100644 --- a/apps/frontend/src/app/global.scss +++ b/apps/frontend/src/app/global.scss @@ -467,6 +467,14 @@ div div .set-font-family { display: none !important; } +html[dir='rtl'] .rbox { + direction: rtl !important; +} + +html[dir='rtl'] .lbox { + direction: ltr !important; +} + html[dir='rtl'] [dir='ltr'] { direction: rtl !important; } diff --git a/apps/frontend/src/components/auth/login.tsx b/apps/frontend/src/components/auth/login.tsx index 79a293cc..91ebfdc1 100644 --- a/apps/frontend/src/components/auth/login.tsx +++ b/apps/frontend/src/components/auth/login.tsx @@ -110,7 +110,7 @@ export function Login() {

- {t('don_t_have_an_account', "Don't Have An Account?")} + {t('don_t_have_an_account', "Don't Have An Account?")}  {t('sign_up', 'Sign Up')} diff --git a/apps/frontend/src/components/auth/register.tsx b/apps/frontend/src/components/auth/register.tsx index 21a04d54..be69c898 100644 --- a/apps/frontend/src/components/auth/register.tsx +++ b/apps/frontend/src/components/auth/register.tsx @@ -205,20 +205,20 @@ export function RegisterAfter({ {t( 'by_registering_you_agree_to_our', 'By registering you agree to our' - )} + )}  {t('terms_of_service', 'Terms of Service')} - - {t('and', 'and')} +   + {t('and', 'and')}  {t('privacy_policy', 'Privacy Policy')} - +  

@@ -231,7 +231,7 @@ export function RegisterAfter({

- {t('already_have_an_account', 'Already Have An Account?')} + {t('already_have_an_account', 'Already Have An Account?')}  {t('sign_in', 'Sign In')} diff --git a/apps/frontend/src/components/layout/settings.component.tsx b/apps/frontend/src/components/layout/settings.component.tsx index b8370ed0..0fad51f2 100644 --- a/apps/frontend/src/components/layout/settings.component.tsx +++ b/apps/frontend/src/components/layout/settings.component.tsx @@ -131,9 +131,11 @@ export const SettingsPopup: FC<{ {t('auto_post', 'Auto Post')} )} - - {t('signatures', 'Signatures')} - + {user?.tier.current !== 'FREE' && ( + + {t('signatures', 'Signatures')} + + )} {!!user?.tier?.public_api && isGeneral && showLogout && ( {t('public_api', 'Public API')} )} @@ -239,10 +241,11 @@ export const SettingsPopup: FC<{ )} - - - - + {user?.tier.current !== 'FREE' && ( + + + + )} {!!user?.tier?.public_api && isGeneral && showLogout && ( diff --git a/apps/frontend/src/middleware.ts b/apps/frontend/src/middleware.ts index 902c743d..d6c786a7 100644 --- a/apps/frontend/src/middleware.ts +++ b/apps/frontend/src/middleware.ts @@ -23,6 +23,8 @@ export async function middleware(request: NextRequest) { ? acceptLanguage.get(request.cookies.get(cookieName).value) : acceptLanguage.get(request.headers.get('Accept-Language'))) || fallbackLng; + + console.log(request.cookies.has(cookieName)); const headers = new Headers(request.headers); headers.set(headerName, lng); if (