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",
"tags": "Tags",
"notes": "Notes",
"deals": "Deals"
"deals": "Deals",
"noTags": "No tags",
"noDeals": "No deals",
"addNotePlaceholder": "Add a note..."
}
},
"Contacts": {
@ -333,7 +336,10 @@
"activity": "Activity",
"notes": "Notes",
"custom": "Custom Fields",
"deals": "Deals"
"deals": "Deals",
"noTags": "No tags",
"noDeals": "No deals",
"addNotePlaceholder": "Add a note..."
},
"actions": {
"edit": "Edit",

View File

@ -189,7 +189,7 @@ export function ContactSidebar({ contact }: ContactSidebarProps) {
</div>
<div className="mt-2 flex flex-wrap gap-1">
{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) => (
<span
@ -218,7 +218,7 @@ export function ContactSidebar({ contact }: ContactSidebarProps) {
</div>
<div className="mt-2 space-y-2">
{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) => (
<div
@ -265,7 +265,7 @@ export function ContactSidebar({ contact }: ContactSidebarProps) {
<textarea
value={newNote}
onChange={(e) => setNewNote(e.target.value)}
placeholder="Add a note..."
placeholder={tSidebar("addNotePlaceholder")}
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"
/>