Why
apps/web/src/pages/Activity.tsx already translates the page title, empty state, and tab labels, but activity badges still render the raw backend event key such as task, document, or user. The file also contains a stale TODO about localizing the event tabs.
This is a small frontend improvement that makes the Activity page consistent in English, Chinese, and Spanish without changing the API.
Scope
- Add Activity event-label translation keys for:
task
document
user
goal
agent
chat
system
- Add the keys to:
apps/web/src/lib/i18n/en.ts
apps/web/src/lib/i18n/zh.ts
apps/web/src/lib/i18n/es.ts
- Update
apps/web/src/pages/Activity.tsx so:
- tabs use the Activity-specific event-label mapping;
- badges show the localized label instead of the raw event key;
- unknown event types use the existing
page.activity.event_fallback translation;
- the stale localization TODO is removed.
- Add a focused Node source test, for example
apps/web/scripts/activity-i18n.test.mjs, that verifies the mapping is used
and all three locale files contain the required keys.
Acceptance criteria
Contribution notes
Please keep the PR limited to the Activity page, the three locale dictionaries,
and the focused source test. Link the PR with Closes #<issue-number>.
Contributions are subject to the project
CLA.
Why
apps/web/src/pages/Activity.tsxalready translates the page title, empty state, and tab labels, but activity badges still render the raw backend event key such astask,document, oruser. The file also contains a stale TODO about localizing the event tabs.This is a small frontend improvement that makes the Activity page consistent in English, Chinese, and Spanish without changing the API.
Scope
taskdocumentusergoalagentchatsystemapps/web/src/lib/i18n/en.tsapps/web/src/lib/i18n/zh.tsapps/web/src/lib/i18n/es.tsapps/web/src/pages/Activity.tsxso:page.activity.event_fallbacktranslation;apps/web/scripts/activity-i18n.test.mjs, that verifies the mapping is usedand all three locale files contain the required keys.
Acceptance criteria
Activity.tsxis removed.npm --prefix apps/web run test:sourcesucceeds.npm --prefix apps/web run buildsucceeds.Contribution notes
Please keep the PR limited to the Activity page, the three locale dictionaries,
and the focused source test. Link the PR with
Closes #<issue-number>.Contributions are subject to the project
CLA.