Skip to content

fix(admin): prevent duplicated translated names in attribute resources#2444

Merged
alecritson merged 2 commits intolunarphp:1.xfrom
tazzytazzy:fix/double-names-in-attribute-groups
Apr 13, 2026
Merged

fix(admin): prevent duplicated translated names in attribute resources#2444
alecritson merged 2 commits intolunarphp:1.xfrom
tazzytazzy:fix/double-names-in-attribute-groups

Conversation

@tazzytazzy
Copy link
Copy Markdown
Contributor

fix(admin): prevent duplicated translated names in attribute resources

Filament was receiving Lunar translatable name fields before they were
resolved to a single translated string. In Filament 4 that could be treated
as a multi-value state and rendered as duplicated text such as
"Details, Details".

Update TranslatedTextColumn to set the translated value as the column state
using Lunar's existing translate() / translateAttribute() helpers instead
of translating later during formatting. This keeps the current translation
system intact while ensuring Filament only renders one name.

This fixes duplicated names in:

  • the attribute group listing
  • the attributes relation manager shown on the attribute group edit page

Add regression coverage for both cases:

  • attribute group list renders a translated name once
  • attribute relation manager renders a translated name once

The names would be listed twice for both the attribute groups and the
attribute names within a group. This fixes that. Includes testing
for this fix too.
@alecritson alecritson merged commit aa20ee1 into lunarphp:1.x Apr 13, 2026
44 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Roadmap Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants