fix: i18n system overhaul and sidebar UI bugs
- Fix LanguageProvider: add RTL support (ar/fa), translation caching, prevent blank flash during load, browser language detection - Fix detect-user-language: extend whitelist from 5 to all 15 languages - Remove hardcoded initialLanguage="fr" from auth layout - Complete fr.json translation (all sections translated from English) - Add missing admin.ai keys to all 13 non-English locales - Translate ai.autoLabels, ai.batchOrganization, memoryEcho sections for all locales - Remove duplicate top-level autoLabels/batchOrganization from en.json - Fix notebook creation: replace window.location.reload() with createNotebookOptimistic + router.refresh() - Fix notebook name truncation in sidebar with min-w-0 - Remove redundant router.refresh() after note creation in page.tsx Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -63,7 +63,13 @@
|
||||
"tagsGenerationProvider": "مزود توليد الوسوم",
|
||||
"title": "تكوين الذكاء الاصطناعي",
|
||||
"updateFailed": "فشل تحديث إعدادات الذكاء الاصطناعي",
|
||||
"updateSuccess": "تم تحديث إعدادات الذكاء الاصطناعي بنجاح"
|
||||
"updateSuccess": "تم تحديث إعدادات الذكاء الاصطناعي بنجاح",
|
||||
"bestValue": "أفضل قيمة",
|
||||
"bestQuality": "أفضل جودة",
|
||||
"providerOllamaOption": "🦙 Ollama (Local & Free)",
|
||||
"providerOpenAIOption": "🤖 OpenAI (GPT-5, GPT-4)",
|
||||
"providerCustomOption": "🔧 Custom OpenAI-Compatible",
|
||||
"saved": "(تم الحفظ)"
|
||||
},
|
||||
"aiTest": {
|
||||
"description": "اختبر مزودي الذكاء الاصطناعي لتوليد الوسوم وتضمينات البحث الدلالي",
|
||||
@@ -153,34 +159,36 @@
|
||||
"analyzing": "الذكاء الاصطناعي يحلل...",
|
||||
"assistant": "مساعد الذكاء الاصطناعي",
|
||||
"autoLabels": {
|
||||
"analyzing": "تحليل ملاحظاتك لاقتراحات التصنيفات...",
|
||||
"create": "إنشاء",
|
||||
"createNewLabel": "Create this new label and add it",
|
||||
"created": "{count} labels created successfully",
|
||||
"creating": "إنشاء التصنيفات...",
|
||||
"description": "I've detected recurring themes in \"{notebookName}\" ({totalNotes} notes). Create labels for them?",
|
||||
"error": "Failed to fetch label suggestions",
|
||||
"error": "فشل في جلب اقتراحات التصنيفات",
|
||||
"noLabelsSelected": "لم يتم اختيار تصنيفات",
|
||||
"created": "تم إنشاء {count} تصنيفات بنجاح",
|
||||
"analyzing": "تحليل ملاحظاتك...",
|
||||
"title": "اقتراحات تصنيفات جديدة",
|
||||
"description": "اكتشفت مواضيع متكررة في \"{notebookName}\" ({totalNotes} ملاحظات). هل تريد إنشاء تصنيفات لها؟",
|
||||
"note": "ملاحظة",
|
||||
"notes": "ملاحظات",
|
||||
"typeContent": "اكتب محتوى للحصول على اقتراحات التصنيفات...",
|
||||
"createNewLabel": "إنشاء هذا التصنيف الجديد وإضافته",
|
||||
"new": "(جديد)",
|
||||
"noLabelsSelected": "No labels selected",
|
||||
"note": "note",
|
||||
"notes": "notes",
|
||||
"title": "اقتراحات التصنيفات",
|
||||
"typeContent": "Type content to get label suggestions..."
|
||||
"create": "إنشاء",
|
||||
"creating": "جارٍ إنشاء التصنيفات...",
|
||||
"notesCount": "{count} ملاحظات",
|
||||
"typeForSuggestions": "اكتب محتوى للحصول على اقتراحات التصنيفات..."
|
||||
},
|
||||
"batchOrganization": {
|
||||
"analyzing": "Analyzing your notes...",
|
||||
"apply": "Apply",
|
||||
"applyFailed": "Failed to apply organization plan",
|
||||
"applying": "Applying...",
|
||||
"description": "سيقوم الذكاء الاصطناعي بتحليل ملاحظاتك واقتراح تنظيمها في دفاتر.",
|
||||
"error": "Failed to create organization plan",
|
||||
"noNotebooks": "No notebooks available. Create notebooks first to organize your notes.",
|
||||
"noNotesSelected": "No notes selected",
|
||||
"noSuggestions": "AI could not find a good way to organize these notes.",
|
||||
"selectAllIn": "Select all notes in {notebook}",
|
||||
"selectNote": "Select note: {title}",
|
||||
"success": "{count} notes moved successfully",
|
||||
"title": "Organize with AI"
|
||||
"title": "تنظيم بالذكاء الاصطناعي",
|
||||
"description": "سيحلل الذكاء الاصطناعي ملاحظاتك ويقترح تنظيمها في دفاتر.",
|
||||
"analyzing": "تحليل ملاحظاتك...",
|
||||
"noNotebooks": "لا توجد دفاتر متاحة. أنشئ دفاتر أولاً.",
|
||||
"noSuggestions": "لم يتمكن الذكاء الاصطناعي من إيجاد طريقة جيدة لتنظيم هذه الملاحظات.",
|
||||
"apply": "تطبيق",
|
||||
"applying": "جارٍ التطبيق...",
|
||||
"success": "تم نقل {count} ملاحظات بنجاح",
|
||||
"error": "فشل في إنشاء خطة التنظيم",
|
||||
"noNotesSelected": "لم يتم اختيار ملاحظات",
|
||||
"applyFailed": "فشل في تطبيق خطة التنظيم",
|
||||
"selectAllIn": "تحديد جميع الملاحظات في {notebook}",
|
||||
"selectNote": "تحديد ملاحظة: {title}"
|
||||
},
|
||||
"clarify": "توضيح",
|
||||
"clickToAddTag": "انقر لإضافة هذا الوسم",
|
||||
|
||||
Reference in New Issue
Block a user