feat(i18n): localize Inbox components and update english translations

This commit is contained in:
Ivan Mercedes 2026-07-07 21:24:54 -04:00
parent 801969a361
commit de75715cff
2 changed files with 11 additions and 5 deletions

View File

@ -247,7 +247,10 @@
"contactInfo": "Contact info", "contactInfo": "Contact info",
"tags": "Tags", "tags": "Tags",
"notes": "Notes", "notes": "Notes",
"deals": "Deals" "deals": "Deals",
"noTags": "No tags",
"noDeals": "No deals",
"addNotePlaceholder": "Add a note..."
} }
}, },
"Contacts": { "Contacts": {
@ -333,7 +336,10 @@
"activity": "Activity", "activity": "Activity",
"notes": "Notes", "notes": "Notes",
"custom": "Custom Fields", "custom": "Custom Fields",
"deals": "Deals" "deals": "Deals",
"noTags": "No tags",
"noDeals": "No deals",
"addNotePlaceholder": "Add a note..."
}, },
"actions": { "actions": {
"edit": "Edit", "edit": "Edit",

View File

@ -189,7 +189,7 @@ export function ContactSidebar({ contact }: ContactSidebarProps) {
</div> </div>
<div className="mt-2 flex flex-wrap gap-1"> <div className="mt-2 flex flex-wrap gap-1">
{tags.length === 0 ? ( {tags.length === 0 ? (
<p className="px-1 text-xs text-muted-foreground">No tags</p> <p className="px-1 text-xs text-muted-foreground">{tSidebar("noTags")}</p>
) : ( ) : (
tags.map((tag) => ( tags.map((tag) => (
<span <span
@ -218,7 +218,7 @@ export function ContactSidebar({ contact }: ContactSidebarProps) {
</div> </div>
<div className="mt-2 space-y-2"> <div className="mt-2 space-y-2">
{deals.length === 0 ? ( {deals.length === 0 ? (
<p className="px-1 text-xs text-muted-foreground">No deals</p> <p className="px-1 text-xs text-muted-foreground">{tSidebar("noDeals")}</p>
) : ( ) : (
deals.map((deal) => ( deals.map((deal) => (
<div <div
@ -265,7 +265,7 @@ export function ContactSidebar({ contact }: ContactSidebarProps) {
<textarea <textarea
value={newNote} value={newNote}
onChange={(e) => setNewNote(e.target.value)} onChange={(e) => setNewNote(e.target.value)}
placeholder="Add a note..." placeholder={tSidebar("addNotePlaceholder")}
rows={2} rows={2}
className="flex-1 resize-none rounded-lg border border-border bg-muted px-3 py-2 text-xs text-foreground placeholder-muted-foreground outline-none focus:border-primary/50" className="flex-1 resize-none rounded-lg border border-border bg-muted px-3 py-2 text-xs text-foreground placeholder-muted-foreground outline-none focus:border-primary/50"
/> />