From fe30947caa47868a711653f7a5bea2304da94624 Mon Sep 17 00:00:00 2001 From: sepehr Date: Sun, 26 Apr 2026 21:44:14 +0200 Subject: [PATCH] fix: replace hardcoded French strings in notes-tabs-view with i18n MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- memento-note/components/notes-tabs-view.tsx | 10 +++++----- memento-note/locales/ar.json | 6 +++++- memento-note/locales/de.json | 6 +++++- memento-note/locales/en.json | 6 +++++- memento-note/locales/es.json | 6 +++++- memento-note/locales/fa.json | 6 +++++- memento-note/locales/fr.json | 6 +++++- memento-note/locales/hi.json | 6 +++++- memento-note/locales/it.json | 6 +++++- memento-note/locales/ja.json | 6 +++++- memento-note/locales/ko.json | 6 +++++- memento-note/locales/nl.json | 6 +++++- memento-note/locales/pl.json | 6 +++++- memento-note/locales/pt.json | 6 +++++- memento-note/locales/ru.json | 6 +++++- memento-note/locales/zh.json | 6 +++++- 16 files changed, 80 insertions(+), 20 deletions(-) diff --git a/memento-note/components/notes-tabs-view.tsx b/memento-note/components/notes-tabs-view.tsx index 6c2b38f..bc96741 100644 --- a/memento-note/components/notes-tabs-view.tsx +++ b/memento-note/components/notes-tabs-view.tsx @@ -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 ? @@ -491,11 +491,11 @@ export function NotesTabsView({ notes, onEdit, currentNotebookId }: NotesTabsVie
-

{items.length === 0 ? 'Carnet vide' : 'Aucune note sélectionnée'}

+

{items.length === 0 ? t('notes.emptyNotebook') : t('notes.noNoteSelected')}

- {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')}

diff --git a/memento-note/locales/ar.json b/memento-note/locales/ar.json index 19ea9a2..feba3cf 100644 --- a/memento-note/locales/ar.json +++ b/memento-note/locales/ar.json @@ -975,7 +975,11 @@ "exportPDF": "تصدير PDF", "savedStatus": "تم الحفظ", "dirtyStatus": "معدّل", - "completedLabel": "مكتمل" + "completedLabel": "مكتمل", + "notes.emptyNotebook": "دفتر فارغ", + "notes.emptyNotebookDesc": "لا توجد ملاحظات. انقر على + لإنشاء واحدة.", + "notes.noNoteSelected": "لم يتم تحديد ملاحظة", + "notes.selectOrCreateNote": "اختر ملاحظة من القائمة أو أنشئ واحدة جديدة." }, "pagination": { "next": "→", diff --git a/memento-note/locales/de.json b/memento-note/locales/de.json index ccea41f..0dd4a47 100644 --- a/memento-note/locales/de.json +++ b/memento-note/locales/de.json @@ -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": "→", diff --git a/memento-note/locales/en.json b/memento-note/locales/en.json index 393a686..5463360 100644 --- a/memento-note/locales/en.json +++ b/memento-note/locales/en.json @@ -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": "←", diff --git a/memento-note/locales/es.json b/memento-note/locales/es.json index f901c2e..f2b1eaf 100644 --- a/memento-note/locales/es.json +++ b/memento-note/locales/es.json @@ -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": "→", diff --git a/memento-note/locales/fa.json b/memento-note/locales/fa.json index 9eda997..ba2d83e 100644 --- a/memento-note/locales/fa.json +++ b/memento-note/locales/fa.json @@ -1028,7 +1028,11 @@ "exportPDF": "خروجی PDF", "savedStatus": "ذخیره شد", "dirtyStatus": "تغییر یافته", - "completedLabel": "تکمیل شده" + "completedLabel": "تکمیل شده", + "notes.emptyNotebook": "دفترچه خالی", + "notes.emptyNotebookDesc": "این دفترچه یادداشتی ندارد. روی + کلیک کنید تا یکی بسازید.", + "notes.noNoteSelected": "یادداشتی انتخاب نشده", + "notes.selectOrCreateNote": "یک یادداشت از لیست انتخاب کنید یا یکی جدید بسازید." }, "pagination": { "next": "→", diff --git a/memento-note/locales/fr.json b/memento-note/locales/fr.json index a57bfdb..4d9b00e 100644 --- a/memento-note/locales/fr.json +++ b/memento-note/locales/fr.json @@ -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": "→", diff --git a/memento-note/locales/hi.json b/memento-note/locales/hi.json index c8dc5ef..65c2798 100644 --- a/memento-note/locales/hi.json +++ b/memento-note/locales/hi.json @@ -975,7 +975,11 @@ "exportPDF": "PDF निर्यात करें", "savedStatus": "सहेजा गया", "dirtyStatus": "संशोधित", - "completedLabel": "पूर्ण" + "completedLabel": "पूर्ण", + "notes.emptyNotebook": "खाली नोटबुक", + "notes.emptyNotebookDesc": "इस नोटबुक में कोई नोट नहीं है। एक बनाने के लिए + पर क्लिक करें।", + "notes.noNoteSelected": "कोई नोट चुना नहीं गया", + "notes.selectOrCreateNote": "सूची से एक नोट चुनें या एक नया बनाएं।" }, "pagination": { "next": "→", diff --git a/memento-note/locales/it.json b/memento-note/locales/it.json index fb646bc..dee9a45 100644 --- a/memento-note/locales/it.json +++ b/memento-note/locales/it.json @@ -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": "→", diff --git a/memento-note/locales/ja.json b/memento-note/locales/ja.json index 2b7c4be..d79ef3d 100644 --- a/memento-note/locales/ja.json +++ b/memento-note/locales/ja.json @@ -998,7 +998,11 @@ "exportPDF": "PDFエクスポート", "savedStatus": "保存済み", "dirtyStatus": "変更済み", - "completedLabel": "完了" + "completedLabel": "完了", + "notes.emptyNotebook": "空のノートブック", + "notes.emptyNotebookDesc": "このノートブックにはノートがありません。+ をクリックして作成。", + "notes.noNoteSelected": "ノート未選択", + "notes.selectOrCreateNote": "リストからノートを選択または新規作成してください。" }, "pagination": { "next": "→", diff --git a/memento-note/locales/ko.json b/memento-note/locales/ko.json index 9a81a7d..4fda800 100644 --- a/memento-note/locales/ko.json +++ b/memento-note/locales/ko.json @@ -975,7 +975,11 @@ "exportPDF": "PDF 내보내기", "savedStatus": "저장됨", "dirtyStatus": "수정됨", - "completedLabel": "완료" + "completedLabel": "완료", + "notes.emptyNotebook": "빈 노트북", + "notes.emptyNotebookDesc": "이 노트북에 노트가 없습니다. +를 클릭하여 만드세요.", + "notes.noNoteSelected": "선택된 노트 없음", + "notes.selectOrCreateNote": "목록에서 노트를 선택하거나 새로 만드세요." }, "pagination": { "next": "→", diff --git a/memento-note/locales/nl.json b/memento-note/locales/nl.json index 240add2..eced583 100644 --- a/memento-note/locales/nl.json +++ b/memento-note/locales/nl.json @@ -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": "→", diff --git a/memento-note/locales/pl.json b/memento-note/locales/pl.json index 58aecbf..1d631f6 100644 --- a/memento-note/locales/pl.json +++ b/memento-note/locales/pl.json @@ -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": "→", diff --git a/memento-note/locales/pt.json b/memento-note/locales/pt.json index c957db2..8558a0f 100644 --- a/memento-note/locales/pt.json +++ b/memento-note/locales/pt.json @@ -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": "→", diff --git a/memento-note/locales/ru.json b/memento-note/locales/ru.json index 1cb30e6..ce996a3 100644 --- a/memento-note/locales/ru.json +++ b/memento-note/locales/ru.json @@ -970,7 +970,11 @@ "exportPDF": "Экспорт PDF", "savedStatus": "Сохранено", "dirtyStatus": "Изменено", - "completedLabel": "Завершено" + "completedLabel": "Завершено", + "notes.emptyNotebook": "Пустой блокнот", + "notes.emptyNotebookDesc": "В этом блокноте нет заметок. Нажмите +, чтобы создать.", + "notes.noNoteSelected": "Заметка не выбрана", + "notes.selectOrCreateNote": "Выберите заметку из списка или создайте новую." }, "pagination": { "next": "→", diff --git a/memento-note/locales/zh.json b/memento-note/locales/zh.json index 53eac13..653c4ad 100644 --- a/memento-note/locales/zh.json +++ b/memento-note/locales/zh.json @@ -998,7 +998,11 @@ "exportPDF": "导出PDF", "savedStatus": "已保存", "dirtyStatus": "已修改", - "completedLabel": "已完成" + "completedLabel": "已完成", + "notes.emptyNotebook": "空笔记本", + "notes.emptyNotebookDesc": "此笔记本没有笔记。点击 + 创建一个。", + "notes.noNoteSelected": "未选择笔记", + "notes.selectOrCreateNote": "从列表中选择笔记或创建新笔记。" }, "pagination": { "next": "→",