Skip to content

feat(web): translate the home, library, detail, search and calendar screens - #3900

Merged
Quick104 merged 3 commits into
mainfrom
i18n/web-area-browse
Nov 10, 2026
Merged

Quick104 merged 3 commits into
mainfrom
i18n/web-area-browse

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 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.

EditMetadataDialog moves its field constants and form setup into EditMetadataDialog.form.ts to 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

  • 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 apart from the plural fixes above.
  • On a sandbox: the screens below render in Spanish, Arabic (right to left), German and Japanese at desktop width, Home and an item page also at phone width.

Evidence

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

Surface and build: web app, desktop and phone width; English on main and on a build of the whole stack, and Spanish, Arabic, German and Japanese on that build.

Risks

  • Merge with the group: web/src/locales/ here is generated from an intermediate local catalog (.silo-translations says local-…). 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

  • 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 a1c29b2: F1 (the plural fixes change English) is intended; the body now lists them.

🤖 Generated with Claude Code

Note

Add app-language translation framework and localize web client screens

  • Introduces a react-intl–based i18n layer in web/src/i18n: message catalogs (en.json plus pseudo-locales), useT/useAppLanguage hooks, RTL argument isolation, and an AppIntlProvider mounted in App.tsx
  • Converts hard-coded English text to translation lookups across the home, library, detail, search, calendar, auth, setup-wizard, and settings screens, plus shared components (dialogs, filters, pagination, menus)
  • Adds language selection: a profile-scoped app-language setting in Accessibility settings, a signed-out picker on auth screens, and Accept-Language on API requests in client.ts. Dates, times, and numbers use the app format locale via formatLocale()
  • Home-row section titles can be translated via title_key/title_args when the server title still matches, with rowKindName used for stored English fallback names
  • Adds a sync-translations script, ESLint rules (formatjs plugin, literal-string checks, ignored src/locales), and per-app-language CLDR language-name loading
  • Risk: default label props removed from ConfirmDialog, SaveBar, pagination, and searchable selects — any caller relying on the old English defaults now gets translated text instead; englishLanguageName was removed in favor of displayLanguageName, and INVALID_EMAIL_MESSAGE is now the invalidEmailMessage() function

Macroscope summarized e81c986.

@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: 8d067971-56ff-4c8b-a415-3f6f97c489ac
Commits

Reviewing files that changed from the base of the PR and between 9e1b72b and d1da626.

Files selected for processing: 186

  • .silo-translations
  • .silo-translations-files
  • web/eslint.config.js
  • web/src/components/CardPlayOverlay.tsx
  • web/src/components/CardWatchedBadge.tsx
  • web/src/components/CastCarousel.tsx
  • web/src/components/ContinueWatchingCard.tsx
  • web/src/components/CrewList.tsx
  • web/src/components/EditMetadataDialog.form.ts
  • web/src/components/EditMetadataDialog.tsx
  • web/src/components/EditPersonDialog.tsx
  • web/src/components/EpisodeRow.tsx
  • web/src/components/FilterBar.tsx
  • web/src/components/FilterRuleEditor.tsx
  • web/src/components/GlobalSearch.test.tsx
  • web/src/components/GlobalSearch.tsx
  • web/src/components/HeroBanner.tsx
  • web/src/components/HeroOverview.tsx
  • web/src/components/ImageSelectorTab.tsx
  • web/src/components/ItemCard.tsx
  • web/src/components/ItemGrid.tsx
  • web/src/components/ItemLibraryPicker.tsx
  • web/src/components/LibraryEmptyState.tsx
  • web/src/components/LibraryHeader.tsx
  • web/src/components/MangaFilesDialog.tsx
  • web/src/components/MatchItemDialog.tsx
  • web/src/components/MediaCarousel.tsx
  • web/src/components/MediaItemMenu.test.tsx
  • web/src/components/MediaItemMenu.tsx
  • web/src/components/MediaLocations.tsx
  • web/src/components/MetadataTranslatePanel.tsx
  • web/src/components/RecommendationGrid.tsx
  • web/src/components/RefreshMetadataDialog.tsx
  • web/src/components/SearchBar.tsx
  • web/src/components/SeasonAccordion.tsx
  • web/src/components/SectionItemCard.tsx
  • web/src/components/SectionRow.tsx
  • web/src/components/SplitItemDialog.tsx
  • web/src/components/StarRating.tsx
  • web/src/components/TasteSeedBanner.tsx
  • web/src/components/boxsets/BoxSetCard.tsx
  • web/src/components/boxsets/BoxSetSearchResults.tsx
  • web/src/components/boxsets/GlobalSearchBoxSetRow.tsx
  • web/src/components/boxsets/MovieBoxSetRow.tsx
  • web/src/components/calendar/CalendarEventCard.tsx
  • web/src/components/calendar/WeekNavigator.tsx
  • web/src/components/castCrewGroups.ts
  • web/src/components/catalog/ActiveFilterBadges.tsx
  • web/src/components/catalog/CatalogFilterBar.tsx
  • web/src/components/catalog/CatalogFilterSheet.tsx
  • web/src/components/catalog/CatalogFiltersPanel.tsx
  • web/src/components/catalog/LetterBar.tsx
  • web/src/components/catalog/SearchScopeChips.tsx
  • web/src/components/catalog/catalogFilterBadges.ts
  • web/src/components/catalog/letterIndex.ts
  • web/src/components/collections/CollectionPageHero.tsx
  • web/src/components/heroMetadata.ts
  • web/src/components/homeRows/AdminNextUpDefaultsCard.tsx
  • web/src/components/homeRows/DeleteRowDialog.tsx
  • web/src/components/homeRows/HomePreferencesCard.tsx
  • web/src/components/homeRows/HomeRowsPage.tsx
  • web/src/components/homeRows/MobileDockBar.tsx
  • web/src/components/homeRows/RemoveRowDialog.tsx
  • web/src/components/homeRows/ResetProfileDialog.tsx
  • web/src/components/homeRows/RestoreDialog.tsx
  • web/src/components/homeRows/RowLine.tsx
  • web/src/components/homeRows/RowList.tsx
  • web/src/components/homeRows/SelectModeBar.tsx
  • web/src/components/homeRows/addRow/AddRowDialog.tsx
  • web/src/components/homeRows/addRow/CollectionPicker.tsx
  • web/src/components/homeRows/addRow/CuratedTitlesEditor.tsx
  • web/src/components/homeRows/addRow/LibraryPageChips.tsx
  • web/src/components/homeRows/addRow/MoreOptions.tsx
  • web/src/components/homeRows/addRow/ParamFields.tsx
  • web/src/components/homeRows/addRow/PickerRail.tsx
  • web/src/components/homeRows/addRow/RowCard.tsx
  • web/src/components/homeRows/addRow/RowForm.tsx
  • web/src/components/homeRows/addRow/RowPicker.tsx
  • web/src/components/homeRows/addRow/RowPreview.tsx
  • web/src/components/homeRows/addRow/RuleBuilder.tsx
  • web/src/components/homeRows/addRow/SeasonalFields.tsx
  • web/src/components/homeRows/addRow/ShowsSummary.tsx
  • web/src/components/homeRows/addRow/VariantChips.tsx
  • web/src/components/homeRows/addRow/VariantChoice.tsx
  • web/src/components/homeRows/nextUpModeLabel.ts
  • web/src/components/homeRows/notes.tsx
  • web/src/components/homeRows/useRowLinks.ts
  • web/src/components/ratings/RatingEntry.tsx
  • web/src/components/sections/EditableSectionRows.tsx
  • web/src/components/sections/HomeLayoutTransfer.tsx
  • web/src/components/sections/SectionOrderList.tsx
  • web/src/components/watchlist/WatchlistTabs.tsx
  • web/src/components/watchlist/WatchlistTitleCard.tsx
  • web/src/components/watchlist/WatchlistTitlesTab.tsx
  • web/src/hooks/queries/homeDismissals.ts
  • web/src/hooks/queries/homeRows/useAdminHomeRows.ts
  • web/src/hooks/queries/homeRows/useHomeLayoutExport.ts
  • web/src/hooks/queries/homeRows/useProfileHomeRowsAdapter.ts
  • web/src/hooks/queries/items.ts
  • web/src/hooks/queries/people.ts
  • web/src/hooks/queries/watchlist.ts
  • web/src/i18n/README.md
  • web/src/i18n/format.test.ts
  • web/src/lib/boxSets.ts
  • web/src/lib/episodeCardLabels.ts
  • web/src/lib/extraKinds.ts
  • web/src/lib/historyRemoval.ts
  • web/src/lib/homeLayoutTransfer.ts
  • web/src/lib/homeRows/catalog.ts
  • web/src/lib/homeRows/describe.ts
  • web/src/lib/homeRows/pages.ts
  • web/src/lib/homeRows/payloads.ts
  • web/src/lib/homeRows/profileOverrides.ts
  • web/src/lib/homeRows/rowDraft.ts
  • web/src/lib/homeRows/search.ts
  • web/src/lib/homeRows/seasonal.ts
  • web/src/lib/homeRows/types.ts
  • web/src/lib/homeRows/variants.ts
  • web/src/lib/sectionTitle.ts
  • web/src/lib/upcomingEventPresentation.ts
  • web/src/locales/ar-XB.json
  • web/src/locales/ar.json
  • web/src/locales/de.json
  • web/src/locales/en-XA.json
  • web/src/locales/en.json
  • web/src/locales/es.json
  • web/src/locales/fr.json
  • web/src/locales/ja.json
  • web/src/locales/keys.ts
  • web/src/locales/pt-BR.json
  • web/src/locales/zh-Hans.json
  • web/src/pages/AdminHomeRows.tsx
  • web/src/pages/BoxSetPage.tsx
  • web/src/pages/Calendar.tsx
  • web/src/pages/Catalog.tsx
  • web/src/pages/Home.tsx
  • web/src/pages/ItemDetail/AudiobookContent.tsx
  • web/src/pages/ItemDetail/DetailHero.tsx
  • web/src/pages/ItemDetail/EbookContent.tsx
  • web/src/pages/ItemDetail/EpisodeContent.tsx
  • web/src/pages/ItemDetail/ExternalTitleContent.tsx
  • web/src/pages/ItemDetail/MangaContent.tsx
  • web/src/pages/ItemDetail/MovieContent.tsx
  • web/src/pages/ItemDetail/SeasonCarousel.tsx
  • web/src/pages/ItemDetail/SeasonContent.tsx
  • web/src/pages/ItemDetail/SeriesContent.tsx
  • web/src/pages/ItemDetail/components/ActionBar.tsx
  • web/src/pages/ItemDetail/components/AudioTracksPopover.tsx
  • web/src/pages/ItemDetail/components/DetailBreadcrumb.tsx
  • web/src/pages/ItemDetail/components/DetailOverview.tsx
  • web/src/pages/ItemDetail/components/EpisodeCardCaption.tsx
  • web/src/pages/ItemDetail/components/EpisodeCarousel.tsx
  • web/src/pages/ItemDetail/components/EpisodesTranslationAction.tsx
  • web/src/pages/ItemDetail/components/ExtrasSection.tsx
  • web/src/pages/ItemDetail/components/HeroCrewLine.tsx
  • web/src/pages/ItemDetail/components/MachineTranslatedLabel.tsx
  • web/src/pages/ItemDetail/components/MediaInfoDialog.tsx
  • web/src/pages/ItemDetail/components/MediaUserActionBar.tsx
  • web/src/pages/ItemDetail/components/MetadataBadges.tsx
  • web/src/pages/ItemDetail/components/RequestActionBar.tsx
  • web/src/pages/ItemDetail/components/ScoreRow.tsx
  • web/src/pages/ItemDetail/components/SeasonEpisodeGrid.tsx
  • web/src/pages/ItemDetail/components/SubtitleSearchDialog.tsx
  • web/src/pages/ItemDetail/components/SubtitlesPopover.tsx
  • web/src/pages/ItemDetail/components/TrailerModal.tsx
  • web/src/pages/ItemDetail/components/TrailersSection.tsx
  • web/src/pages/ItemDetail/components/VersionDropdown.tsx
  • web/src/pages/ItemDetail/components/VersionFlyout.tsx
  • web/src/pages/ItemDetail/components/episodeCardText.ts
  • web/src/pages/ItemDetail/components/mediaSpecSections.ts
  • web/src/pages/ItemDetail/components/prePlaySelection.ts
  • web/src/pages/ItemDetail/components/useDetailWatchedActions.ts
  • web/src/pages/ItemDetail/components/versionFormatUtils.ts
  • web/src/pages/ItemDetail/index.tsx
  • web/src/pages/ItemDetail/itemDetailLayout.ts
  • web/src/pages/ItemDetail/watchedState.ts
  • web/src/pages/LibraryBrowse.tsx
  • web/src/pages/LibraryCollections.tsx
  • web/src/pages/LibraryPage.tsx
  • web/src/pages/LibraryRecommended.tsx
  • web/src/pages/PersonDetail.tsx
  • web/src/pages/Recommendations.tsx
  • web/src/pages/RecommendationsSection.tsx
  • web/src/pages/TasteSeed.tsx
  • web/src/pages/TitleDetail.tsx
  • web/src/pages/settings/HomeScreenSettings.tsx
  • 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:14:43.302547Z d1da626 New commits
🔒 Security Review ✅ Completed 2026-11-10T02:14:51.498519Z d1da626 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.

@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 a1c29b2)

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

Comment thread web/src/lib/homeRows/describe.ts Resolved
@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-shell-auth branch from 8424a0c to 9d7792d 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-shell-auth branch 2 times, most recently from db11f06 to a8b69f7 Compare November 10, 2026 02:10
@Quick104
Quick104 changed the base branch from i18n/web-area-shell-auth to main November 10, 2026 02:10
Quick104 and others added 3 commits November 9, 2026 21:10
…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]>
@Quick104
Quick104 force-pushed the i18n/web-area-browse branch from e81c986 to d1da626 Compare November 10, 2026 02:10
@Quick104
Quick104 merged commit 410117c into main Nov 10, 2026
1 check passed
@Quick104
Quick104 deleted the i18n/web-area-browse 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 javascript Pull requests that update javascript code 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