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": "Tags Generation Provider",
|
||||
"title": "AI Configuration",
|
||||
"updateFailed": "Failed to update AI settings",
|
||||
"updateSuccess": "AI Settings updated successfully"
|
||||
"updateSuccess": "AI Settings updated successfully",
|
||||
"bestValue": "Лучшее соотношение цена/качество",
|
||||
"bestQuality": "Лучшее качество",
|
||||
"providerOllamaOption": "🦙 Ollama (Local & Free)",
|
||||
"providerOpenAIOption": "🤖 OpenAI (GPT-5, GPT-4)",
|
||||
"providerCustomOption": "🔧 Custom OpenAI-Compatible",
|
||||
"saved": "(Сохранено)"
|
||||
},
|
||||
"aiTest": {
|
||||
"description": "Test your AI providers for tag generation and semantic search embeddings",
|
||||
@@ -156,9 +162,9 @@
|
||||
"analyzing": "Анализ ваших заметок для предложений меток...",
|
||||
"create": "Создать",
|
||||
"createNewLabel": "Создать новую метку",
|
||||
"created": "{count} labels created successfully",
|
||||
"created": "{count} тегов успешно создано",
|
||||
"creating": "Создание меток...",
|
||||
"description": "I've detected recurring themes in \"{notebookName}\" ({totalNotes} notes). Create labels for them?",
|
||||
"description": "Я обнаружил повторяющиеся темы в \"{notebookName}\" ({totalNotes} заметках). Создать для них теги?",
|
||||
"error": "Failed to fetch label suggestions",
|
||||
"new": "(новая)",
|
||||
"noLabelsSelected": "No labels selected",
|
||||
@@ -530,14 +536,14 @@
|
||||
"memoryEcho": {
|
||||
"clickToView": "Нажмите для просмотра",
|
||||
"comparison": {
|
||||
"clickToView": "Click to view note",
|
||||
"helpful": "Helpful",
|
||||
"helpfulQuestion": "Is this comparison helpful?",
|
||||
"highSimilarityInsight": "These notes deal with the same topic with a high degree of similarity. They could be merged or consolidated.",
|
||||
"notHelpful": "Not Helpful",
|
||||
"similarityInfo": "These notes are connected by {similarity}% similarity",
|
||||
"title": "💡 Note Comparison",
|
||||
"untitled": "Untitled"
|
||||
"title": "💡 Сравнение заметок",
|
||||
"similarityInfo": "Эти заметки связаны на {similarity}% подобия",
|
||||
"highSimilarityInsight": "Эти заметки относятся к одной теме с высокой степенью подобия. Их можно объединить.",
|
||||
"untitled": "Без названия",
|
||||
"clickToView": "Нажмите для просмотра заметки",
|
||||
"helpfulQuestion": "Полезно ли это сравнение?",
|
||||
"helpful": "Полезно",
|
||||
"notHelpful": "Не полезно"
|
||||
},
|
||||
"connection": "connection",
|
||||
"connections": "Connections",
|
||||
@@ -546,40 +552,40 @@
|
||||
"description": "Proactive connections between your notes",
|
||||
"dismiss": "Dismiss for now",
|
||||
"editorSection": {
|
||||
"close": "Закрыть",
|
||||
"compare": "Compare",
|
||||
"compareAll": "Compare all",
|
||||
"loading": "Loading...",
|
||||
"merge": "Merge",
|
||||
"mergeAll": "Merge all",
|
||||
"title": "⚡ Connected Notes ({count})",
|
||||
"view": "View"
|
||||
"title": "⚡ Связанные заметки ({count})",
|
||||
"loading": "Загрузка...",
|
||||
"view": "Просмотр",
|
||||
"compare": "Сравнить",
|
||||
"merge": "Объединить",
|
||||
"compareAll": "Сравнить всё",
|
||||
"mergeAll": "Объединить всё",
|
||||
"close": "Закрыть"
|
||||
},
|
||||
"fused": "Fused",
|
||||
"fused": "Объединено",
|
||||
"fusion": {
|
||||
"archiveOriginals": "Archive original notes",
|
||||
"cancel": "Cancel",
|
||||
"confirmFusion": "Confirm fusion",
|
||||
"createBacklinks": "Create backlink to original notes",
|
||||
"edit": "Edit",
|
||||
"error": "Failed to merge notes",
|
||||
"finishEditing": "Finish editing",
|
||||
"generateError": "Failed to generate fusion",
|
||||
"generateFusion": "Generate the fusion",
|
||||
"generating": "Generating...",
|
||||
"keepAllTags": "Keep all tags",
|
||||
"mergeNotes": "Merge {count} note(s)",
|
||||
"modify": "Modify",
|
||||
"noContentReturned": "No fusion content returned from API",
|
||||
"notesToMerge": "📝 Notes to merge",
|
||||
"optionalPrompt": "💬 Fusion prompt (optional)",
|
||||
"optionsTitle": "Fusion options",
|
||||
"previewTitle": "📝 Preview of merged note",
|
||||
"promptPlaceholder": "Optional instructions for AI (e.g., 'Keep the formal style of note 1')...",
|
||||
"success": "Notes merged successfully!",
|
||||
"title": "🔗 Intelligent Fusion",
|
||||
"unknownDate": "Unknown date",
|
||||
"useLatestTitle": "Use latest note as title"
|
||||
"title": "🔗 Умное слияние",
|
||||
"mergeNotes": "Объединить {count} заметку/и",
|
||||
"notesToMerge": "📝 Заметки для объединения",
|
||||
"optionalPrompt": "💬 Промпт слияния (необязательно)",
|
||||
"promptPlaceholder": "Необязательные инструкции для ИИ (напр. 'Сохранить формальный стиль заметки 1')...",
|
||||
"generateFusion": "Сгенерировать слияние",
|
||||
"generating": "Генерация...",
|
||||
"previewTitle": "📝 Предпросмотр объединённой заметки",
|
||||
"edit": "Редактировать",
|
||||
"modify": "Изменить",
|
||||
"finishEditing": "Завершить редактирование",
|
||||
"optionsTitle": "Параметры слияния",
|
||||
"archiveOriginals": "Архивировать оригинальные заметки",
|
||||
"keepAllTags": "Сохранить все теги",
|
||||
"useLatestTitle": "Использовать последнюю заметку как заголовок",
|
||||
"createBacklinks": "Создать обратную ссылку на оригинальные заметки",
|
||||
"cancel": "Отмена",
|
||||
"confirmFusion": "Подтвердить слияние",
|
||||
"success": "Заметки успешно объединены!",
|
||||
"error": "Не удалось объединить заметки",
|
||||
"generateError": "Не удалось создать слияние",
|
||||
"noContentReturned": "API не вернул содержимого слияния",
|
||||
"unknownDate": "Неизвестная дата"
|
||||
},
|
||||
"helpful": "Helpful",
|
||||
"insightReady": "Your insight is ready!",
|
||||
|
||||
Reference in New Issue
Block a user