Skip to content

feat(web): translate the admin shell, operations pages, settings, backups and plugins - #3906

Merged
Quick104 merged 2 commits into
mainfrom
i18n/web-area-admin-ops
Nov 10, 2026
Merged

Quick104 merged 2 commits into
mainfrom
i18n/web-area-admin-ops

Conversation

@Quick104

@Quick104 Quick104 commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: #3188
Validation tasks: none (English output is unchanged apart from plural fixes in task schedules)

Stacked on #3905; the full stack order is in #3723.

The admin shell, dashboard, operations pages, settings, backups and plugins are hardcoded English, so an administrator using a translated interface still runs the server in English. This converts them to catalog messages.

Approach

The admin layout and sidebar (with the navigation and settings-search data in lib/), the dashboard and its widgets, the stats page, logs, tasks and task detail, nodes, plugins and plugin detail, diagnostics, maintenance, backups and restore, and every admin settings page now come from the catalog. englishText() returns a message's English for text the code matches or compares, and a missing message id renders nothing rather than failing the page. Recommendation sections keep their collapsed state by id. Text main gained during review (Server resources rows, hardware detection results, seek previews per transcode node) is converted; its keys are in the silo-translations release.

To stay under the 800-line limit, AdminDiagnostics, AdminLogs, AdminTaskDetail and PlaybackSettings move self-contained parts into sibling modules.

English is unchanged apart from plural fixes in task schedule text ("Every 1 hour(s)" → "Every 1 hour"). An English search still finds a section's pages in a translated interface: headings keep their English name as a search keyword.

Validation

  • Web tests, typecheck, ESLint, prettier, the size ratchet and the bidi check pass on this branch.
  • English: per-screen visible text matches main on every converted screen.
  • On a sandbox: the admin pages below render in Spanish, Arabic (right to left), German and Japanese.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-3906/

Surface and build: web admin, desktop and phone width; English on main and on a build of the whole stack, and Spanish, Arabic, German and Japanese on that build. Phone captures show English (before and after), Spanish and Arabic.

Risks

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code; Codex
  • Model(s): claude-opus-5-5; claude-sonnet-5-5; gpt-6.1-sol
  • Involvement: Fully AI-generated; human review pending
  • Adversarial review: code review by Claude (claude-opus-5-5); one adversarial round by Codex (gpt-6.1-sol) on the branch it was split from, findings fixed. Background review by Codex (gpt-6.1-sol) on 4aba3d6: F1 (an English search lost a translated heading's pages) fixed, with a test.

🤖 Generated with Claude Code

Note

Translate the web app: admin shell, operations pages, settings, backups, plugins, and player

  • Adds a full i18n layer: a message-catalog loader (catalog.ts), formatter and hooks (format.ts, hooks.ts), a LocaleProvider, and lazy English/admin message catalogs
  • Replaces hard-coded English strings across nearly all web pages and components with translation lookups; number, date, and list formatting now follows the app locale
  • Adds a signed-out language picker on auth screens (AuthLanguagePicker.tsx) and sends Accept-Language on API requests via buildApiHeaders
  • API error display is localized: V2ProblemError messages are selected from field-error codes and problem types through problemDisplayText (request.ts)
  • Adds sync-translations to fetch, verify, and stage generated translation files from a release archive or local checkout
  • Behavioral Change: admin pages render nothing until the admin message catalog loads (AdminLayout, setup wizard); stored values that persist user-visible text (e.g. staged room headlines, routing-preset ruleName, warning reports) are deliberately kept in English via englishText. The backup warning report stays English across languages.

Macroscope summarized 4e75cd8.

@silo-triage silo-triage Bot added the size/XXXL 3000+ added + deleted lines (all files); change volume, not priority. label Nov 9, 2026
@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T02:15:34.448925Z 25003a9 New commits
🔒 Security Review ✅ Completed 2026-11-10T02:16:28.501720Z 25003a9 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-triage silo-triage Bot added enhancement New feature or request evidence-required Needs before-and-after evidence before the Evidence check passes priority: P2 Limited scope, workaround exists, or polish stacked Base is another open PR; merge in stack order named in the body labels Nov 9, 2026
@silo-triage

silo-triage Bot commented Nov 9, 2026

Copy link
Copy Markdown

The Evidence section names desktop only, but the translated admin shell, dashboard and settings text also appears at phone width. Please add before-and-after mobile-web captures of these affected surfaces, including a translated view, or show why mobile is unaffected, as CONTRIBUTING.md requires.

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adversarial review (gpt-6.1-sol, reviewed 4aba3d6)

AI disclosure: reviewed by gpt-6.1-sol via the Codex harness in T3 Code.

Comment thread web/src/lib/adminNavigation.ts Resolved
@Quick104
Quick104 force-pushed the i18n/web-area-admin-ops branch from 4aba3d6 to bb9d4e2 Compare November 9, 2026 18:47
@Quick104
Quick104 force-pushed the i18n/web-area-admin-users branch from a1ef24e to 4bb2133 Compare November 9, 2026 18:47
@Quick104

Quick104 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Added phone-width captures to the evidence page: the dashboard and General settings in English (before and after), Spanish and Arabic.

@Quick104
Quick104 force-pushed the i18n/web-area-admin-users branch from 4bb2133 to c1a4c86 Compare November 9, 2026 20:08
@Quick104
Quick104 force-pushed the i18n/web-area-admin-ops branch from bb9d4e2 to 1a1d413 Compare November 9, 2026 20:08
@Quick104
Quick104 force-pushed the i18n/web-area-admin-users branch from c1a4c86 to c4a9eaa Compare November 10, 2026 02:08
@Quick104
Quick104 force-pushed the i18n/web-area-admin-ops branch from 1a1d413 to 4e75cd8 Compare November 10, 2026 02:08
@Quick104
Quick104 force-pushed the i18n/web-area-admin-users branch from c4a9eaa to a4c61ff Compare November 10, 2026 02:11
@Quick104
Quick104 changed the base branch from i18n/web-area-admin-users to main November 10, 2026 02:11
Quick104 and others added 2 commits November 9, 2026 21:11
…kups and plugins

Extracts the admin shell and navigation, dashboard, nodes, logs, tasks,
server settings, backups and plugins to the shared catalog with English
unchanged. englishText() gives the English of a message for text the
code matches or compares, and a missing message id renders nothing.
Recommendation sections keep their collapsed state by id. The Server
resources rows, hardware detection results and seek preview capacity
setting main added are converted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Quick104
Quick104 force-pushed the i18n/web-area-admin-ops branch from 4e75cd8 to 25003a9 Compare November 10, 2026 02:11
@Quick104
Quick104 merged commit 96b7cc6 into main Nov 10, 2026
3 checks passed
@Quick104
Quick104 deleted the i18n/web-area-admin-ops branch November 10, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request evidence-required Needs before-and-after evidence before the Evidence check passes priority: P2 Limited scope, workaround exists, or polish size/XXXL 3000+ added + deleted lines (all files); change volume, not priority. stacked Base is another open PR; merge in stack order named in the body

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant