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:
Sepehr Ramezani
2026-03-29 22:14:05 +02:00
parent 8bf56cd8cd
commit 8daf50ac3f
27 changed files with 1210 additions and 936 deletions

View File

@@ -63,7 +63,13 @@
"tagsGenerationProvider": "Tags-Generierungsanbieter",
"title": "KI-Konfiguration",
"updateFailed": "Fehler beim Aktualisieren der KI-Einstellungen",
"updateSuccess": "KI-Einstellungen erfolgreich aktualisiert"
"updateSuccess": "KI-Einstellungen erfolgreich aktualisiert",
"bestValue": "Bestes Preis-Leistungs-Verhältnis",
"bestQuality": "Beste Qualität",
"providerOllamaOption": "🦙 Ollama (Local & Free)",
"providerOpenAIOption": "🤖 OpenAI (GPT-5, GPT-4)",
"providerCustomOption": "🔧 Custom OpenAI-Compatible",
"saved": "(Gespeichert)"
},
"aiTest": {
"description": "Testen Sie Ihre KI-Anbieter für Tag-Generierung und semantische Such-Embeddings",
@@ -153,34 +159,36 @@
"analyzing": "KI analysiert...",
"assistant": "KI-Assistent",
"autoLabels": {
"analyzing": "Analysiere Ihre Notizen r Etikettenvorschläge...",
"create": "Erstellen",
"createNewLabel": "Create this new label and add it",
"created": "{count} labels created successfully",
"creating": "Erstelle Etiketten...",
"description": "I've detected recurring themes in \"{notebookName}\" ({totalNotes} notes). Create labels for them?",
"error": "Failed to fetch label suggestions",
"error": "Fehler beim Abrufen der Etikettvorschläge",
"noLabelsSelected": "Keine Etiketten ausgewählt",
"created": "{count} Etiketten erfolgreich erstellt",
"analyzing": "Analysiere deine Notizen...",
"title": "Neue Etikettvorschläge",
"description": "Ich habe wiederkehrende Themen in \"{notebookName}\" ({totalNotes} Notizen) erkannt. Etiketten erstellen?",
"note": "Notiz",
"notes": "Notizen",
"typeContent": "Inhalt eingeben für Etikettvorschläge...",
"createNewLabel": "Dieses neue Etikett erstellen und hinzufügen",
"new": "(neu)",
"noLabelsSelected": "No labels selected",
"note": "note",
"notes": "notes",
"title": "Etikettenvorschläge",
"typeContent": "Type content to get label suggestions..."
"create": "Erstellen",
"creating": "Etiketten werden erstellt...",
"notesCount": "{count} Notizen",
"typeForSuggestions": "Inhalt eingeben für Etikettvorschläge..."
},
"batchOrganization": {
"analyzing": "Analyzing your notes...",
"apply": "Apply",
"applyFailed": "Failed to apply organization plan",
"applying": "Applying...",
"description": "Die KI analysiert Ihre Notizen und schlägt vor, sie in Notizbüchern zu organisieren.",
"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": "Mit KI organisieren",
"description": "Die KI analysiert deine Notizen und schlägt vor, sie in Notizbücher zu organisieren.",
"analyzing": "Analysiere deine Notizen...",
"noNotebooks": "Keine Notizbücher verfügbar. Erstelle zuerst Notizbücher.",
"noSuggestions": "Die KI konnte keine gute Möglichkeit finden, diese Notizen zu organisieren.",
"apply": "Anwenden",
"applying": "Wird angewendet...",
"success": "{count} Notizen erfolgreich verschoben",
"error": "Fehler beim Erstellen des Organisationsplans",
"noNotesSelected": "Keine Notizen ausgewählt",
"applyFailed": "Fehler beim Anwenden des Organisationsplans",
"selectAllIn": "Alle Notizen in {notebook} auswählen",
"selectNote": "Notiz auswählen: {title}"
},
"clarify": "Klarstellen",
"clickToAddTag": "Klicken Sie, um diesen Tag hinzuzufügen",
@@ -193,7 +201,7 @@
"languageDetected": "Sprache erkannt",
"notebookSummary": {
"regenerate": "Zusammenfassung neu generieren",
"regenerating": "Generiere Zusammenfassung neu..."
"regenerating": "Zusammenfassung wird neu generiert..."
},
"original": "Original",
"poweredByAI": "Powered by KI",