feat: improve AI Chat UX, add notebook summary, and fix shared/reminders routing
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 1m50s
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 1m50s
This commit is contained in:
@@ -9,7 +9,11 @@ import { useEffect } from 'react'
|
||||
export function DirectionInitializer() {
|
||||
useEffect(() => {
|
||||
try {
|
||||
const lang = localStorage.getItem('user-language')
|
||||
let lang = localStorage.getItem('user-language')
|
||||
if (!lang) {
|
||||
const c = document.cookie.split(';').map(s => s.trim()).find(s => s.startsWith('user-language='))
|
||||
if (c) lang = c.split('=')[1]
|
||||
}
|
||||
if (lang === 'fa' || lang === 'ar') {
|
||||
document.documentElement.dir = 'rtl'
|
||||
document.documentElement.lang = lang
|
||||
|
||||
Reference in New Issue
Block a user