mirror of
https://github.com/Luchexx/wacrm.git
synced 2026-11-02 09:19:51 +00:00
fix(i18n): label the contact name field with its own key
The Details tab rendered `t("company")` above the name input, so the
panel showed "Company" twice and the name field carried the wrong
label — in English as well as Korean. There was no
`Contacts.detailView.name` key at all; the call papered over it with
`{ fallback: "Name" }`, which next-intl ignores (the second argument
is ICU values, not options).
Add the missing key to both catalogues, point the label at it, and
drop the two decorative `fallback` arguments so the remaining call
sites read as what they are.
This commit is contained in:
parent
4887cad57e
commit
ec137c6fa5
@ -371,6 +371,7 @@
|
|||||||
"contactInfo": "Contact Information",
|
"contactInfo": "Contact Information",
|
||||||
"unnamed": "Unknown",
|
"unnamed": "Unknown",
|
||||||
"contactDetailsDesc": "Contact details",
|
"contactDetailsDesc": "Contact details",
|
||||||
|
"name": "Name",
|
||||||
"phone": "Phone",
|
"phone": "Phone",
|
||||||
"email": "Email",
|
"email": "Email",
|
||||||
"company": "Company",
|
"company": "Company",
|
||||||
|
|||||||
@ -371,6 +371,7 @@
|
|||||||
"contactInfo": "연락처 정보",
|
"contactInfo": "연락처 정보",
|
||||||
"unnamed": "알 수 없음",
|
"unnamed": "알 수 없음",
|
||||||
"contactDetailsDesc": "연락처 정보",
|
"contactDetailsDesc": "연락처 정보",
|
||||||
|
"name": "이름",
|
||||||
"phone": "전화번호",
|
"phone": "전화번호",
|
||||||
"email": "이메일",
|
"email": "이메일",
|
||||||
"company": "회사",
|
"company": "회사",
|
||||||
|
|||||||
@ -462,7 +462,7 @@ export function ContactDetailView({
|
|||||||
value="tags"
|
value="tags"
|
||||||
className="data-active:bg-muted data-active:text-primary text-muted-foreground"
|
className="data-active:bg-muted data-active:text-primary text-muted-foreground"
|
||||||
>
|
>
|
||||||
{t('tabs.tags', { fallback: 'Tags' })}
|
{t('tabs.tags')}
|
||||||
</TabsTrigger>
|
</TabsTrigger>
|
||||||
<TabsTrigger
|
<TabsTrigger
|
||||||
value="notes"
|
value="notes"
|
||||||
@ -488,7 +488,7 @@ export function ContactDetailView({
|
|||||||
<TabsContent value="details" className="flex-1 overflow-y-auto px-4 py-3">
|
<TabsContent value="details" className="flex-1 overflow-y-auto px-4 py-3">
|
||||||
<div className="space-y-3">
|
<div className="space-y-3">
|
||||||
<div className="space-y-1.5">
|
<div className="space-y-1.5">
|
||||||
<Label className="text-muted-foreground text-xs">{t('company', { fallback: 'Name' })}</Label>
|
<Label className="text-muted-foreground text-xs">{t('name')}</Label>
|
||||||
<Input
|
<Input
|
||||||
value={editName}
|
value={editName}
|
||||||
onChange={(e) => setEditName(e.target.value)}
|
onChange={(e) => setEditName(e.target.value)}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user