Skip to content

feat(web): translate the player, reader and audiobook screens - #3901

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

Quick104 merged 2 commits into
mainfrom
i18n/web-area-playback

Conversation

@Quick104

@Quick104 Quick104 commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: #3188
Validation tasks: none (English output is unchanged in the player, reader and audiobook screens)

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

The video player, the ebook and manga readers and the audiobook player are hardcoded English, so a translated interface still plays and reads in English. This converts them to catalog messages.

Approach

Every user-visible string in the player and its menus, playback errors, subtitles, markers, Up Next, the in-player Watch Party panel, the downloads picker, the ebook reader and the audiobook player now comes from the catalog. Playback problem text goes through the v2 problem helper. Subtitle match labels and chapter checks stay English, because the code compares them.

PlayerControls moves two small icon components into PlayerControlsParts.tsx to stay under the 800-line limit.

Validation

  • Web tests, typecheck, ESLint, prettier, the size ratchet and the bidi check pass on this branch.
  • English is byte-identical apart from listed plural fixes, checked by tests and on a sandbox.
  • On a sandbox: the player and its settings menu render in Spanish, Arabic, German and Japanese.

Evidence

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

Surface and build: web player, 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 37d3a30: F1 (untitled audiobook chapter titles kept the previous language) fixed in 5e32547.

🤖 Generated with Claude Code

Note

Translate the player, reader, audiobook, and library screens with react-intl

  • Adds a full i18n layer: @/i18n module with typed message keys, English catalog, lazy-loaded translations, and pseudo-locales; AppIntlProvider wraps the app in App.tsx
  • Replaces hard-coded English strings across the player, reader, audiobook, item-detail, setup wizard, and home-rows UI with translation lookups, including accessibility labels, toasts, and errors
  • Adds app-language settings (AppLanguageSetting in AccessibilitySettings.tsx), a signed-out language picker on auth pages, locale-aware date/number formatting, and an Accept-Language header on API requests in client.ts
  • Server-provided problem errors resolve display text through translated field-code and problem-type messages via problemFieldDetail/problemDisplayText in request.ts; section titles can now carry server-authored translation keys
  • Behavioral Change: reconnect/lower-quality player notices are now identified by a kind field instead of comparing translated label text, and the seek slider is located by a data-player-seek-slider attribute instead of its aria-label; saved subtitle-track signatures and default row titles remain language-invariant by design (see prePlaySelection.ts and payloads.ts)

Macroscope summarized 751ba0b.

@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

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 57 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f8a4c49e-fffb-4bf1-b12f-9af4ab408646
Commits

Reviewing files that changed from the base of the PR and between 410117c and 9630f63.

Files selected for processing: 83

  • web/eslint.config.js
  • web/src/api/v2/ebookFile.ts
  • web/src/api/v2/request.ts
  • web/src/components/DownloadVersionPicker.tsx
  • web/src/components/JellyfinSessionPill.tsx
  • web/src/components/NowListeningHero.tsx
  • web/src/components/PlaybackRouteBadges.tsx
  • web/src/components/StreamBitrateLimitInput.tsx
  • web/src/components/UnreadableFileBadge.tsx
  • web/src/components/audiobooks/AudiobookGroupsView.tsx
  • web/src/components/markers/MarkerEditor.tsx
  • web/src/components/markers/RedetectMarkersDialog.tsx
  • web/src/components/subtitles/SubtitleUploadForm.tsx
  • web/src/i18n/README.md
  • web/src/i18n/format.test.ts
  • web/src/lib/audiobooks/chapters.ts
  • web/src/lib/audiobooks/duration.ts
  • web/src/lib/markerProvenance.ts
  • web/src/lib/markers.ts
  • web/src/lib/quotaPeriods.ts
  • web/src/lib/streamBitrateLimit.ts
  • web/src/pages/EbookReader.tsx
  • web/src/pages/ItemDetail/AudiobookContent.tsx
  • web/src/pages/WatchRoute.test.tsx
  • web/src/pages/admin-settings/AISettings.tsx
  • web/src/pages/audiobooks/components/ChaptersSection.tsx
  • web/src/pages/audiobooks/components/NarratorCard.tsx
  • web/src/pages/audiobooks/components/NarratorPicker.tsx
  • web/src/pages/audiobooks/player/CoverExpandTile.tsx
  • web/src/pages/audiobooks/player/MiniBar.tsx
  • web/src/pages/audiobooks/player/NowListening.tsx
  • web/src/pages/audiobooks/player/PlayerSettingsMenu.tsx
  • web/src/pages/audiobooks/player/SpeedControl.tsx
  • web/src/pages/audiobooks/player/useAudiobookPlayback.ts
  • web/src/pages/audiobooks/player/useAudiobookPrefs.ts
  • web/src/pages/watchRouteHelpers.ts
  • web/src/playback/ShufflePlayingNext.tsx
  • web/src/playback/WatchPlaybackChrome.tsx
  • web/src/player/bandwidth-measure.ts
  • web/src/player/buffering-quality.ts
  • web/src/player/components/AudioTrackMenu.tsx
  • web/src/player/components/BufferingQualityPill.tsx
  • web/src/player/components/ChaptersMenu.tsx
  • web/src/player/components/IntroSkipButton.tsx
  • web/src/player/components/MarkerEditPanel.tsx
  • web/src/player/components/NextEpisodeOverlay.tsx
  • web/src/player/components/PlaybackInfoOverlay.tsx
  • web/src/player/components/PlaybackSpeedTrack.tsx
  • web/src/player/components/PlayerControls.tsx
  • web/src/player/components/PlayerControlsParts.tsx
  • web/src/player/components/PlayerMenuSurface.tsx
  • web/src/player/components/PlayingNextScreen.tsx
  • web/src/player/components/QualityMenu.test.ts
  • web/src/player/components/QualityMenu.tsx
  • web/src/player/components/SeekBar.tsx
  • web/src/player/components/SleepTimerMenu.tsx
  • web/src/player/components/SubtitleMenu.tsx
  • web/src/player/components/SubtitleSearchModal.tsx
  • web/src/player/components/SubtitleSyncIndicator.tsx
  • web/src/player/components/SubtitleTranslateModal.test.ts
  • web/src/player/components/SubtitleTranslateModal.tsx
  • web/src/player/components/VideoPlayer.tsx
  • web/src/player/components/VolumeControl.tsx
  • web/src/player/components/WatchPage.tsx
  • web/src/player/components/WatchTogetherPanel.tsx
  • web/src/player/components/subtitleTranslateRequest.ts
  • web/src/player/hooks/useIntroSkipPrompt.ts
  • web/src/player/hooks/useMarkerEditor.ts
  • web/src/player/hooks/usePlaybackSession.ts
  • web/src/player/hooks/useSubtitleSync.ts
  • web/src/player/hooks/useSubtitleSyncFeedback.ts
  • web/src/player/hooks/useTrackChoicePersistence.ts
  • web/src/player/hooks/useWatchTogetherRoomConnection.ts
  • web/src/player/lifecycle-v2.ts
  • web/src/player/playback-errors.ts
  • web/src/player/playback-info.ts
  • web/src/player/player-fetch.ts
  • web/src/player/player-v2.ts
  • web/src/player/start-v2.ts
  • web/src/player/utils/playbackSpeed.ts
  • web/src/player/utils/subtitleSync.ts
  • web/src/reader/FoliateBookReader.tsx
  • web/src/reader/ebookProgressApi.ts
  • 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:13:24.786127Z 9630f63 New commits
🔒 Security Review ✅ Completed 2026-11-10T02:14:48.653710Z 9630f63 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 identifies desktop captures only, but this changes shared web player and reader text. Please add before-and-after phone-width captures of the affected UI, including a translated state, or explain why mobile web is unaffected. CONTRIBUTING.md treats desktop and mobile web as separate Evidence surfaces.

@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 37d3a30)

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

Comment thread web/src/lib/audiobooks/chapters.ts Resolved
@Quick104

Quick104 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

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

@Quick104
Quick104 force-pushed the i18n/web-area-browse branch from a1c29b2 to d10a386 Compare November 9, 2026 20:08
@Quick104
Quick104 force-pushed the i18n/web-area-playback branch from 5e32547 to 0f9e608 Compare November 9, 2026 20:08
@Quick104
Quick104 force-pushed the i18n/web-area-browse branch from d10a386 to e81c986 Compare November 10, 2026 02:08
@Quick104
Quick104 force-pushed the i18n/web-area-playback branch from 0f9e608 to 751ba0b Compare November 10, 2026 02:08
@Quick104
Quick104 force-pushed the i18n/web-area-browse branch from e81c986 to d1da626 Compare November 10, 2026 02:10
@Quick104
Quick104 changed the base branch from i18n/web-area-browse to main November 10, 2026 02:10
Quick104 and others added 2 commits November 9, 2026 21:10
Extracts the video player, ebook and manga readers and the audiobook
player to the shared catalog with English unchanged, including marker
sources and the chapter fallback. Subtitle match labels and chapter checks
stay English, since the code compares them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Both chapter lists were memoised on the files alone, so the translated
fallback title of an untitled chapter kept the previous language.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Quick104
Quick104 force-pushed the i18n/web-area-playback branch from 751ba0b to 9630f63 Compare November 10, 2026 02:10
@Quick104
Quick104 merged commit 63ba043 into main Nov 10, 2026
3 checks passed
@Quick104
Quick104 deleted the i18n/web-area-playback branch November 10, 2026 02:10
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