Skip to content

ActivityTimeline's empty state is a hardcoded English literal, so a zh session reads "No activity recorded" #7142

Description

@os-warren

Found while measuring the empty-state surfaces for #7132. Out of scope there, filed rather than fixed.

packages/plugin-detail/src/ActivityTimeline.tsx:138:

<DataEmptyState title="No activity recorded" className="py-6" />

The title is a raw English string literal. It is not a t() call and not an inline defaultValue — it never reaches the pack system at all, so it stays English in all ten locales.

Why it is worth a card

Its sibling on the same surface does it correctly. RecordActivityTimeline.tsx:415 renders the same state as:

title={emptyLabel ?? t('detail.noActivity')}

So the key already exists and is already translated in the packs — this call site simply does not use it. That makes the fix small and the current state a straightforward inconsistency rather than a missing-translation project.

Measured

Rendered ActivityTimeline with activities={[]}; the empty box reads text="No activity recorded" with the literal coming straight from the JSX, not from a pack lookup.

⚠️ Note for whoever takes this: confirm whether detail.noActivity is the right key for this component's phrasing before reusing it, rather than assuming the two surfaces want identical copy. If they do want different copy, that is a new key in en.ts plus its nine sibling packs, with all-locales-key-parity green — never an inline defaultValue (#3517).

Refs: #7132.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:uiobjectui ui stream: fix lands on the published library or apps — objectui execution seatfinding

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions