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
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user