Repository navigation
feat(web): translate the player, reader and audiobook screens - #3901
Conversation
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
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. |
|
Added phone-width captures to the evidence page: the video player in English (before and after), Spanish and Arabic. |
a1c29b2 to
d10a386
Compare
5e32547 to
0f9e608
Compare
d10a386 to
e81c986
Compare
0f9e608 to
751ba0b
Compare
e81c986 to
d1da626
Compare
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]>
751ba0b to
9630f63
Compare
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.
PlayerControlsmoves two small icon components intoPlayerControlsParts.tsxto stay under the 800-line limit.Validation
Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-3901/
Surface and build: web player, desktop and phone width; English on
mainand 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
AI Disclosure
🤖 Generated with Claude Code
Note
Translate the player, reader, audiobook, and library screens with react-intl
@/i18nmodule with typed message keys, English catalog, lazy-loaded translations, and pseudo-locales;AppIntlProviderwraps the app in App.tsxAppLanguageSettingin AccessibilitySettings.tsx), a signed-out language picker on auth pages, locale-aware date/number formatting, and anAccept-Languageheader on API requests in client.tsproblemFieldDetail/problemDisplayTextin request.ts; section titles can now carry server-authored translation keyskindfield instead of comparing translated label text, and the seek slider is located by adata-player-seek-sliderattribute 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.