fix: replace hardcoded French strings in notes-tabs-view with i18n
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 43s

- Empty notebook placeholder: "Carnet vide" → t('notes.emptyNotebook')
- No note selected: "Aucune note sélectionnée" → t('notes.noNoteSelected')
- Descriptions replaced with t('notes.emptyNotebookDesc'), t('notes.selectOrCreateNote')
- Removed French fallback on newNote button title
- Added 4 new i18n keys to all 15 locales

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-26 21:44:14 +02:00
parent b893b5ac34
commit fe30947caa
16 changed files with 80 additions and 20 deletions

View File

@@ -403,7 +403,7 @@ export function NotesTabsView({ notes, onEdit, currentNotebookId }: NotesTabsVie
className="h-7 w-7 p-0 text-muted-foreground hover:text-foreground"
onClick={handleCreateNote}
disabled={isCreating}
title={t('notes.newNote') || 'Nouvelle note'}
title={t('notes.newNote') }
>
{isCreating
? <Loader2 className="h-3.5 w-3.5 animate-spin" />
@@ -491,11 +491,11 @@ export function NotesTabsView({ notes, onEdit, currentNotebookId }: NotesTabsVie
<div className="mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-2xl bg-background shadow-sm border border-border/50">
<FileText className="h-8 w-8 text-muted-foreground/30" />
</div>
<h3 className="text-lg font-heading font-medium text-foreground">{items.length === 0 ? 'Carnet vide' : 'Aucune note sélectionnée'}</h3>
<h3 className="text-lg font-heading font-medium text-foreground">{items.length === 0 ? t('notes.emptyNotebook') : t('notes.noNoteSelected')}</h3>
<p className="mt-2 text-sm text-muted-foreground max-w-sm mx-auto">
{items.length === 0
? "Ce carnet ne contient aucune note. Cliquez sur le bouton + pour en créer une."
: "Sélectionnez une note dans la liste à gauche ou créez-en une nouvelle."}
{items.length === 0
? t('notes.emptyNotebookDesc')
: t('notes.selectOrCreateNote')}
</p>
</div>
</div>

View File

@@ -975,7 +975,11 @@
"exportPDF": "تصدير PDF",
"savedStatus": "تم الحفظ",
"dirtyStatus": "معدّل",
"completedLabel": "مكتمل"
"completedLabel": "مكتمل",
"notes.emptyNotebook": "دفتر فارغ",
"notes.emptyNotebookDesc": "لا توجد ملاحظات. انقر على + لإنشاء واحدة.",
"notes.noNoteSelected": "لم يتم تحديد ملاحظة",
"notes.selectOrCreateNote": "اختر ملاحظة من القائمة أو أنشئ واحدة جديدة."
},
"pagination": {
"next": "→",

View File

@@ -998,7 +998,11 @@
"exportPDF": "PDF exportieren",
"savedStatus": "Gespeichert",
"dirtyStatus": "Geändert",
"completedLabel": "Erledigt"
"completedLabel": "Erledigt",
"notes.emptyNotebook": "Leeres Notizbuch",
"notes.emptyNotebookDesc": "Keine Notizen vorhanden. Klicke auf + um eine zu erstellen.",
"notes.noNoteSelected": "Keine Notiz ausgewählt",
"notes.selectOrCreateNote": "Wähle eine Notiz aus der Liste oder erstelle eine neue."
},
"pagination": {
"next": "→",

View File

@@ -157,7 +157,11 @@
"exportPDF": "Export PDF",
"savedStatus": "Saved",
"dirtyStatus": "Modified",
"completedLabel": "Completed"
"completedLabel": "Completed",
"notes.emptyNotebook": "Empty notebook",
"notes.emptyNotebookDesc": "This notebook has no notes. Click + to create one.",
"notes.noNoteSelected": "No note selected",
"notes.selectOrCreateNote": "Select a note from the list or create a new one."
},
"pagination": {
"previous": "←",

View File

@@ -970,7 +970,11 @@
"exportPDF": "Exportar PDF",
"savedStatus": "Guardado",
"dirtyStatus": "Modificado",
"completedLabel": "Completados"
"completedLabel": "Completados",
"notes.emptyNotebook": "Cuaderno vacío",
"notes.emptyNotebookDesc": "Este cuaderno no tiene notas. Haz clic en + para crear una.",
"notes.noNoteSelected": "Ninguna nota seleccionada",
"notes.selectOrCreateNote": "Selecciona una nota de la lista o crea una nueva."
},
"pagination": {
"next": "→",

View File

@@ -1028,7 +1028,11 @@
"exportPDF": "خروجی PDF",
"savedStatus": "ذخیره شد",
"dirtyStatus": "تغییر یافته",
"completedLabel": "تکمیل شده"
"completedLabel": "تکمیل شده",
"notes.emptyNotebook": "دفترچه خالی",
"notes.emptyNotebookDesc": "این دفترچه یادداشتی ندارد. روی + کلیک کنید تا یکی بسازید.",
"notes.noNoteSelected": "یادداشتی انتخاب نشده",
"notes.selectOrCreateNote": "یک یادداشت از لیست انتخاب کنید یا یکی جدید بسازید."
},
"pagination": {
"next": "→",

View File

@@ -981,7 +981,11 @@
"exportPDF": "Export PDF",
"savedStatus": "Saved",
"dirtyStatus": "Modified",
"completedLabel": "Completed"
"completedLabel": "Completed",
"notes.emptyNotebook": "Empty notebook",
"notes.emptyNotebookDesc": "This notebook has no notes. Click + to create one.",
"notes.noNoteSelected": "No note selected",
"notes.selectOrCreateNote": "Select a note from the list or create a new one."
},
"pagination": {
"next": "→",

View File

@@ -975,7 +975,11 @@
"exportPDF": "PDF निर्यात करें",
"savedStatus": "सहेजा गया",
"dirtyStatus": "संशोधित",
"completedLabel": "पूर्ण"
"completedLabel": "पूर्ण",
"notes.emptyNotebook": "खाली नोटबुक",
"notes.emptyNotebookDesc": "इस नोटबुक में कोई नोट नहीं है। एक बनाने के लिए + पर क्लिक करें।",
"notes.noNoteSelected": "कोई नोट चुना नहीं गया",
"notes.selectOrCreateNote": "सूची से एक नोट चुनें या एक नया बनाएं।"
},
"pagination": {
"next": "→",

View File

@@ -1020,7 +1020,11 @@
"exportPDF": "Esporta PDF",
"savedStatus": "Salvato",
"dirtyStatus": "Modificato",
"completedLabel": "Completati"
"completedLabel": "Completati",
"notes.emptyNotebook": "Quaderno vuoto",
"notes.emptyNotebookDesc": "Questo quaderno non ha note. Clicca + per crearne una.",
"notes.noNoteSelected": "Nessuna nota selezionata",
"notes.selectOrCreateNote": "Seleziona una nota dalla lista o creane una nuova."
},
"pagination": {
"next": "→",

View File

@@ -998,7 +998,11 @@
"exportPDF": "PDFエクスポート",
"savedStatus": "保存済み",
"dirtyStatus": "変更済み",
"completedLabel": "完了"
"completedLabel": "完了",
"notes.emptyNotebook": "空のノートブック",
"notes.emptyNotebookDesc": "このノートブックにはノートがありません。+ をクリックして作成。",
"notes.noNoteSelected": "ノート未選択",
"notes.selectOrCreateNote": "リストからノートを選択または新規作成してください。"
},
"pagination": {
"next": "→",

View File

@@ -975,7 +975,11 @@
"exportPDF": "PDF 내보내기",
"savedStatus": "저장됨",
"dirtyStatus": "수정됨",
"completedLabel": "완료"
"completedLabel": "완료",
"notes.emptyNotebook": "빈 노트북",
"notes.emptyNotebookDesc": "이 노트북에 노트가 없습니다. +를 클릭하여 만드세요.",
"notes.noNoteSelected": "선택된 노트 없음",
"notes.selectOrCreateNote": "목록에서 노트를 선택하거나 새로 만드세요."
},
"pagination": {
"next": "→",

View File

@@ -1020,7 +1020,11 @@
"exportPDF": "PDF exporteren",
"savedStatus": "Opgeslagen",
"dirtyStatus": "Gewijzigd",
"completedLabel": "Voltooid"
"completedLabel": "Voltooid",
"notes.emptyNotebook": "Leeg notitieboek",
"notes.emptyNotebookDesc": "Dit notitieboek heeft geen notities. Klik op + om er een te maken.",
"notes.noNoteSelected": "Geen notitie geselecteerd",
"notes.selectOrCreateNote": "Selecteer een notitie uit de lijst of maak een nieuwe."
},
"pagination": {
"next": "→",

View File

@@ -1042,7 +1042,11 @@
"exportPDF": "Eksportuj PDF",
"savedStatus": "Zapisano",
"dirtyStatus": "Zmodyfikowano",
"completedLabel": "Ukończone"
"completedLabel": "Ukończone",
"notes.emptyNotebook": "Pusty notatnik",
"notes.emptyNotebookDesc": "Ten notatnik nie ma notatek. Kliknij + aby utworzyć.",
"notes.noNoteSelected": "Nie wybrano notatki",
"notes.selectOrCreateNote": "Wybierz notatkę z listy lub utwórz nową."
},
"pagination": {
"next": "→",

View File

@@ -970,7 +970,11 @@
"exportPDF": "Exportar PDF",
"savedStatus": "Salvo",
"dirtyStatus": "Modificado",
"completedLabel": "Concluídos"
"completedLabel": "Concluídos",
"notes.emptyNotebook": "Caderno vazio",
"notes.emptyNotebookDesc": "Este caderno não tem notas. Clique em + para criar uma.",
"notes.noNoteSelected": "Nenhuma nota selecionada",
"notes.selectOrCreateNote": "Selecione uma nota da lista ou crie uma nova."
},
"pagination": {
"next": "→",

View File

@@ -970,7 +970,11 @@
"exportPDF": "Экспорт PDF",
"savedStatus": "Сохранено",
"dirtyStatus": "Изменено",
"completedLabel": "Завершено"
"completedLabel": "Завершено",
"notes.emptyNotebook": "Пустой блокнот",
"notes.emptyNotebookDesc": "В этом блокноте нет заметок. Нажмите +, чтобы создать.",
"notes.noNoteSelected": "Заметка не выбрана",
"notes.selectOrCreateNote": "Выберите заметку из списка или создайте новую."
},
"pagination": {
"next": "→",

View File

@@ -998,7 +998,11 @@
"exportPDF": "导出PDF",
"savedStatus": "已保存",
"dirtyStatus": "已修改",
"completedLabel": "已完成"
"completedLabel": "已完成",
"notes.emptyNotebook": "空笔记本",
"notes.emptyNotebookDesc": "此笔记本没有笔记。点击 + 创建一个。",
"notes.noNoteSelected": "未选择笔记",
"notes.selectOrCreateNote": "从列表中选择笔记或创建新笔记。"
},
"pagination": {
"next": "→",