Skip to content

chore(settings): move the Team section's hardcoded copy into messages/en.json #909

Closed

Description

@gkhngyk

Description

web/src/components/settings/team-section.tsx has more hardcoded copy than any other settings section, so localized users see English in the team tab:

  • the seat-limit banner (lines 161–166), including a hand-rolled plural: seat{info.maxTeamMembers === 1 ? '' : 's'}
  • the "Pending invitations" card title (line 187)
  • toasts: "Failed to load team", "Role updated", "Member removed", "Invitation revoked", "Invitation resent (link copied)", "Email is required" and the matching failure messages (lines 102–438)
  • "Expired" / "Expires {date}" on invitation rows (line 380)

Expected behavior

All copy in the section comes from web/messages/en.json, with ICU plurals for counts.

Suggested fix

Add the strings to the settings namespace in web/messages/en.json — the section already calls useTranslations — and use ICU plural syntax ({count, plural, one {# seat} other {# seats}}) for the seat count.

Run yarn lint and yarn build from web/ before opening the PR — see CONTRIBUTING.md.

Activity

  1. added
    good first issue
    help wanted
    on Oct 4, 2026
  2. added a commit that references this issue on Oct 8, 2026
    338cbd6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions