Repository navigation
feat(web): translate the home, library, detail, search and calendar screens - #3900
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. |
a1c29b2 to
d10a386
Compare
8424a0c to
9d7792d
Compare
d10a386 to
e81c986
Compare
db11f06 to
a8b69f7
Compare
…creens Extracts the browse screens' text to the shared catalog with English unchanged: Home and its row editor, libraries, item and person detail, search, collections browsing and the calendar. Saved subtitle labels and other text the app stores or compares stay English. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The area PRs use key names that the shared-helpers PR later moves, and keys for text main gained; no silo-translations release holds that intermediate set. Generated by scripts/sync-translations from a local build of it; the shared-helpers PR regenerates again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
e81c986 to
d1da626
Compare
Problem
Related issue: #3188
Validation tasks: none (English output is unchanged apart from the plural fixes listed below)
Stacked on #3899; the full stack order is in #3723.
The browsing screens are hardcoded English, so a translated interface still shows English on Home, library, detail, search and calendar pages. This converts them to catalog messages.
Approach
Every string the client writes on Home (hero, Continue Watching, rows, card menus, taste seed), the Home rows editor, library and catalog pages with their filters, item cards, movie/series/season/episode/person pages, the item menu and its dialogs, box sets, collections browsing, search and the calendar now comes from the catalog. Text the code stores or compares stays English (saved subtitle labels, row kind names). The converted files are on the ESLint guard.
English is unchanged apart from plural fixes where the old code printed a plural for one: "1 Episodes" → "1 Episode", "1 votes" → "1 vote", "1 years old" → "1 year old", the search status ("1 result found", "1 library result", "1 request suggestion"), "1 items" → "1 item", "1 kinds" → "1 kind", and Home row descriptions ("Added in the last 1 day", "Movies of 1 minute or less"). Counts in plural messages group digits from 1,000 ("1,234"); the counts these screens show stay far below that, and Hidden gems' play count prints as written.
EditMetadataDialogmoves its field constants and form setup intoEditMetadataDialog.form.tsto stay under the 800-line limit.This PR and the six above it up to the shared-helpers PR build against an intermediate catalog: they use key names the shared-helpers PR later moves, which no silo-translations release holds. This PR carries that catalog's generated output in its last commit; the shared-helpers PR replaces it with the release.
Validation
mainon every converted screen apart from the plural fixes above.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-3900/
Surface and build: web app, desktop and phone width; English on
mainand on a build of the whole stack, and Spanish, Arabic, German and Japanese on that build.Risks
web/src/locales/here is generated from an intermediate local catalog (.silo-translationssayslocal-…). It can't be pinned to a release, because no release holds these key names. Merge this PR together with the six above it and the shared-helpers PR, which pins the release.Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Add app-language translation framework and localize web client screens
useT/useAppLanguagehooks, RTL argument isolation, and anAppIntlProvidermounted in App.tsxAccept-Languageon API requests in client.ts. Dates, times, and numbers use the app format locale viaformatLocale()title_key/title_argswhen the server title still matches, withrowKindNameused for stored English fallback namessync-translationsscript, ESLint rules (formatjs plugin, literal-string checks, ignoredsrc/locales), and per-app-language CLDR language-name loadingConfirmDialog,SaveBar,pagination, and searchable selects — any caller relying on the old English defaults now gets translated text instead;englishLanguageNamewas removed in favor ofdisplayLanguageName, andINVALID_EMAIL_MESSAGEis now theinvalidEmailMessage()functionMacroscope summarized e81c986.