You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(i18n): send title keys for seasonal rows, Discover rows and recipe presets - #3943
Related issue: N/A
Validation tasks: none changed. English titles stay the same for the Curated home sections and Requests cases (#1140, #1141, #1142, #1203, #1204).
Some text the server writes still reaches every client in English, with no key a client could translate:
seasonal section titles;
the Discover rows on the Requests page;
the Top Picks Today preset;
recipe preset names and descriptions in the row builder.
Users in every non-English language see them in English.
Approach
The server now sends a catalog key beside each of these texts, in the same way #3727 does for section titles. It sends one only while the text is the server's own wording; a title someone typed gets none.
Discover rows carry title_key and title_args on RowOrder, DiscoverSection and the admin layout rows, for built-in rows that still hold their default title.
Seasonal rows: a built-in vibe's in-season title carries title_key.
Recipe presets carry display_name_key, description_short_key and description_long_key in the v2 recipe list. They use a new shared home.recipe.* namespace; ten presets reuse existing home.section.* keys because their English matches.
/api/v1 and jellycompat are unchanged. The section_title_keys capability description now covers the new fields.
On the web:
the Requests page and the Discover section page show translated row titles;
the row builder, the section list and row search show translated preset names, and search matches both the shown name and the English;
a preset's name that the builder saves as a row's title stays English, because it is stored data.
The admin Discover editor sends stored rows back when a layout is saved. It now leaves out title_key and title_args, which the write refuses as unknown fields.
Follow-up: silo-apple and silo-android need to read the new key fields and pick up the regenerated v2 fixtures.
Validation
Go tests for apiv2, contractspec, jellycompat, requests, requests/discoverrows, sections, sections/recipes and recommendations pass. make lint-changed: 0 issues.
verify-apiv2-openapi, verify-apiv2-web-types and verify-apiv2-fixtures pass. verify-apiv2-contract reports 15 changes, all new optional properties, so none needs approval.
Typecheck clean. ESLint 0 errors. Full web suite passes.
On two sandboxes, one built from main and one from this branch, with requests turned on and the browser in German: the Requests page shows translated Discover row titles and the row builder shows translated preset hints, where main shows English. Seasonal titles were not in season, so only their unit tests cover them.
In the admin Discover editor on the branch sandbox, hiding a row and showing it again each save with a 200. Against the same server, writing the rows back as read answers 422 and without title_key answers 200. The web test for that write fails on the commit before the fix.
Evidence
English is unchanged on every affected screen: Home, the row builder, the Requests page and the admin Discover layout. In another language, Discover row titles and preset names now show translated where they used to show English, and so do seasonal titles when they are in season. The captures show the Requests page and the row builder in German, at desktop and phone width, on both builds.
Involvement: Fully AI-generated; human verification pending
Adversarial review: multi-agent code review (claude-fable-5-2) of bd7e366 found that saving the admin Discover layout answered 422, plus smaller points, fixed in 9cf8679. One cross-provider round (gpt-6.1-sol) of 9cf8679 found nothing.
Add title/text localization keys for seasonal rows, Discover rows, and recipe presets
Server now sends catalog keys alongside display text: SeasonalPick gets a TitleKey for built-in titles (seasonal.go), Discover rows/sections embed SectionTitleKey (requests.go, admin_request_discover.go), and RecipePreset gains display_name_key, description_short_key, and description_long_key via PresetTextKeys (text_keys.go, home.go)
Web UI resolves these keys through serverText with English fallback via new presetLabel/presetShortText helpers (recipes.ts); home-row picker, variant hints, row form, and Discover row titles now show translated text
Adds translations for the new keys across all locale files (en, de, fr, es, pt-BR, ar, ja, zh-Hans, plus pseudo-locales), and updates the i18n, catalog API, and seasonal-picks docs
Fixes rowBody in discoverLayoutModel.ts to strip server-added title_key/title_args before writing row layout
Behavioral Change: renames web.settings.historyImport.processed to ...processedSoFar and web.home.addRow.rules.noRulesCollection to ...noRulesCollectionYet, and removes web.catalog.letters.*, web.catalog.mediaType.*, web.catalog.page.*, web.collections.copy.previewEveryLibrary, and web.home.addRow.rules.chooseLibraries keys; title keys are only present for built-in default titles — custom or renamed rows/seasons get no key
…pe presets
v2 now carries translation keys for server-worded text that had none: a
seasonal row's built-in in-season title, the built-in Requests Discover row
titles (title_key on the row order, rows and admin layout), and each recipe
preset's name and descriptions (display_name_key, description_short_key,
description_long_key). The frozen v1 gallery and Jellyfin surface are
unchanged. Also regenerates the OpenAPI artifact, web types, fixtures and
web text from the catalog, and documents the keys.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Requests Discover rows and recipe presets now use the title_key and
display_name_key / description_*_key the server sends, through the same
server-text path as section titles. A preset's English name still becomes
the saved row title, and picker search matches both the shown and the
English name.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This PR adds translation-key fields for built-in section titles and recipe preset text. It exposes those fields through v2 API contracts, updates web consumers to resolve translated labels and titles, and refreshes fixtures, tests, documentation, and generated locale-key metadata.
The server derives title_key for built-in Requests Discover rows and built-in seasonal titles, returns it in API responses, and updates request pages to resolve titles through useSectionTitle. The API schemas and documentation describe the related title fields and their applicability.
Recipe presets expose optional display_name_key, description_short_key, and conditional description_long_key. The server derives those keys. The API contracts, fixtures, documentation, and tests describe the fields and fallback text.
Web preset label and description rendering web/src/lib/recipes.ts, web/src/components/homeRows/addRow/*, web/src/components/sections/EditableSectionRows.tsx, web/src/lib/homeRows/{catalog,search,rowDraft}.ts, web/src/lib/homeRows/__fixtures__/recipeCatalog.v2.json
The web recipe catalog carries preset text keys. Helper functions resolve translated preset labels and descriptions through serverText. The row picker, row editor, unknown-kind cards, and search text use those helpers.
rowBody removes server-added title_key and title_args fields, as well as source, before producing a row body for writes. A test checks this conversion.
sequenceDiagram
participant API
participant ServerTextCatalog
participant WebRequestPages
participant WebPresetViews
API-->>WebRequestPages: Section title and translation key
WebRequestPages->>ServerTextCatalog: Resolve section title
API-->>WebPresetViews: Preset text and translation keys
WebPresetViews->>ServerTextCatalog: Resolve preset label and description
ServerTextCatalog-->>WebRequestPages: Localized title or fallback
ServerTextCatalog-->>WebPresetViews: Localized text or fallback
Loading
Possibly related issues
Silo-Server/silo-server#1140: The PR adds optional v2 localization fields and updates the contract for centrally defined home rows.
Silo-Server/silo-server#1137: The PR adds keys for seasonal and built-in row titles and updates web title rendering.
Silo-Server/silo-server#1142: The PR updates web row data and rendering to use localized title keys with English fallbacks.
Silo-Server/silo-server#3944: This PR continues the web localization work and uses the Discover row translation fields and admin row conversion path updated here.
The inspected changes add optional translation metadata without expanding permissions or weakening layout-write controls. English fallbacks limit compatibility risk. Released-catalog provenance and compatibility with clients outside this repository remain unverified.
Retained concerns
No architecture-level concerns identified.
Security review details
Security Blast Radius
inferred — Presentation changes propagate to viewers of the affected sections and preset selectors. The inspected consumers use translated strings as labels, hints, and headings; no new privileged sink or increase in caller authority was identified along those paths.
Trust Boundaries and Controls
observed — The pre-existing global Discover layout remains administrator-owned. Mutations require administrator authority, while response-only localization fields are stripped by the web converter and excluded by the strict writable schema. Adding display metadata does not grant authority to modify the layout.
Resilience and Maintainability Implications
observed — Existing layout mutations avoid blind replay, surface stale revisions, and refetch after failures. Persistence is atomic, while post-commit refresh has a recovery path. Metadata removal preserves these controls rather than introducing a new multi-step persistence transition.
Pre-merge checks: 4 · 1
Failed checks: 1 inconclusive
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 60.87% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta…
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly and concisely summarizes the main change: adding localization keys for seasonal rows, Discover rows, and recipe presets.
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description directly explains the localization changes for seasonal titles, Discover rows, recipe presets, API fields, web behavior, testing, and risks. It matches the changeset.
Full details: Docstring Coverage
Explanation
Docstring coverage is 60.87% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 23 functions across 25 files. (4 skipped: 3 unsupported, 1 too large.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Finishing Touches
Generate docstrings
Commit to this branch
Create a new PR
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Files not fully reviewed because they exceed a per-file size limit: 10
web/src/locales/en-XA.json
web/src/locales/ar.json
web/src/locales/ar-XB.json
web/src/locales/es.json
web/src/locales/en.json
web/src/locales/ja.json
web/src/locales/zh-Hans.json
web/src/locales/pt-BR.json
web/src/locales/fr.json
web/src/locales/de.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
The admin Discover layout read now carries title_key on built-in rows.
The editor sent each stored row back with only `source` removed, and the
write refuses unknown fields, so every reorder, show or hide, delete, save
and preview on a layout with a built-in row answered 422. rowBody now
drops title_key and title_args too.
Also:
- strip the full stop of the text's own script from a preset hint;
- say in the capability text and the contract document that the Discover
row and preset keys came after section_title_keys;
- document that preset and seasonal keys use a lowerCamel segment;
- cover a custom holiday in the seasonal key test;
- drop presetLongText, which nothing called.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
The test checks only a Christmas pick. The other seasonal tests discard TitleKey, and the loop checks punctuation rather than catalog membership. A non-Christmas key regression can therefore leave a title untranslated without failing these tests.
For each titled theme and vibe, call ActiveSeasonalPick with a pinned theme and assert that its emitted TitleKey exists in the bundled English catalog.
Additional comments: 1
docs/architecture/i18n.md-234-235: 1
234-235: Minor · Functional Correctness · Quick win
Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.
Document the shared preset-name keys.
Not every preset key uses the derived segment. For hidden_gems_default, PresetTextKeys uses home.section.hiddenGems for the display name. A maintainer following this rule could update the wrong catalog entry and leave the name untranslated. Document the shared-name exceptions.
Review info
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: 3718e1a3-c22f-43e2-b219-8bdef2de5855
Commits
Reviewing files that changed from the base of the PR and between bd7e366 and 9cf8679.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.
Reviewing changes in Silo
Include the related issue, expected behavior, and validation steps in the PR description.
For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
Follow this repository's AGENTS.md and CONTRIBUTING.md.
Request another review with @kody start-review in a PR comment.
React with 👍 or 👎 to give feedback on individual suggestions.
Review settingsReview Options
The following review options are enabled or disabled:
Options
Enabled
Bug
✅
Performance
✅
Security
✅
Business Logic
❌
⚠️ 4 Kody Rule(s) were not evaluated
These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:
Preserve optional store capabilities through production wrappers
Detach mandatory cleanup from request cancellation and bound its lifetime
Preserve durable media identity and share identity-evidence precedence
Bound decoder throughput trades and share direct-play eligibility
Saving the admin Discover layout answered 422. The layout read now carries title_key on built-in rows, the editor sent rows back with it, and the write refuses unknown fields. The editor now leaves out title_key and title_args (9cf8679). The web test for it fails on the commit before, and on a sandbox the editor's saves answer 200.
A preset hint kept its full stop in Japanese and Chinese, because only an ASCII full stop was stripped.
The section_title_keys capability text and docs/architecture/api-contract.md now say that the Discover row and preset keys came after that flag, so a client reads each key when it is present.
docs/architecture/i18n.md says preset and seasonal keys use a lowerCamel segment and are taken from the response, not built by the client.
The seasonal key test covers a custom holiday. presetLongText, which nothing called, is gone.
Synced to the catalog release 2026.11.11-f9a8e2b.
Checks
All 148 keys the server can send exist in the catalog with the same English.
On two sandboxes with requests on and the browser in German, main shows English Discover row titles and preset hints and this branch shows them translated, at desktop and phone width.
A cross-provider review (gpt-6.1-sol) of 9cf8679 found nothing: no other place sends a read-only field back to a strict write, and no /api/v1 or Jellyfin response changed shape.
Left for a maintainer to settle
A built-in Discover row keeps its key only while its stored title equals today's default. If a default is ever reworded, rows in a customized layout keep the old English and lose the key. Home sections avoid this by storing the key; Discover rows do not store one.
A row made from a preset saves the preset's English name as its title, so it shows English after it is added. The description says so.
Validated features: not checked against the 1.0 board (no access to it from this run). English is unchanged on the Home, row builder, Requests and admin Discover screens. User manual: no change expected. A code search of the site repository for the Discover page and the interface language returned no pages. Apple and Android: both need a follow-up to read the new fields and pick up the regenerated fixtures. None is filed yet.
Fit: 9/10 · Readiness: 9/10 — ready. The new fields are optional, follow the existing section title keys, and a client that ignores them shows what it showed before.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
api-v2API v2 / Huma migration program (epic #135); long-running, stacked by phaseenhancementNew feature or requestgoPull requests that update go codeimpact: usabilityCore flow broken or severely blockedjavascriptPull requests that update javascript codesize/XXXL3000+ added + deleted lines (all files); change volume, not priority.
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Related issue: N/A
Validation tasks: none changed. English titles stay the same for the Curated home sections and Requests cases (#1140, #1141, #1142, #1203, #1204).
Some text the server writes still reaches every client in English, with no key a client could translate:
Users in every non-English language see them in English.
Approach
The server now sends a catalog key beside each of these texts, in the same way #3727 does for section titles. It sends one only while the text is the server's own wording; a title someone typed gets none.
title_keyandtitle_argsonRowOrder,DiscoverSectionand the admin layout rows, for built-in rows that still hold their default title.title_key.display_name_key,description_short_keyanddescription_long_keyin the v2 recipe list. They use a new sharedhome.recipe.*namespace; ten presets reuse existinghome.section.*keys because their English matches./api/v1and jellycompat are unchanged. Thesection_title_keyscapability description now covers the new fields.On the web:
The keys come from Silo-Server/silo-translations#10, released as
2026.11.11-f9a8e2b, which this branch is synced to.The admin Discover editor sends stored rows back when a layout is saved. It now leaves out
title_keyandtitle_args, which the write refuses as unknown fields.Follow-up:
silo-appleandsilo-androidneed to read the new key fields and pick up the regenerated v2 fixtures.Validation
apiv2,contractspec,jellycompat,requests,requests/discoverrows,sections,sections/recipesandrecommendationspass.make lint-changed: 0 issues.verify-apiv2-openapi,verify-apiv2-web-typesandverify-apiv2-fixturespass.verify-apiv2-contractreports 15 changes, all new optional properties, so none needs approval.mainand one from this branch, with requests turned on and the browser in German: the Requests page shows translated Discover row titles and the row builder shows translated preset hints, wheremainshows English. Seasonal titles were not in season, so only their unit tests cover them.title_keyanswers 200. The web test for that write fails on the commit before the fix.Evidence
English is unchanged on every affected screen: Home, the row builder, the Requests page and the admin Discover layout. In another language, Discover row titles and preset names now show translated where they used to show English, and so do seasonal titles when they are in season. The captures show the Requests page and the row builder in German, at desktop and phone width, on both builds.
Evidence: https://evidence.siloserver.org/r/silo-server/pr-3943/
Risks
Additive API fields only. A client that ignores them keeps showing
titleanddisplay_nameas before.Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Add title/text localization keys for seasonal rows, Discover rows, and recipe presets
SeasonalPickgets aTitleKeyfor built-in titles (seasonal.go), Discover rows/sections embedSectionTitleKey(requests.go, admin_request_discover.go), andRecipePresetgainsdisplay_name_key,description_short_key, anddescription_long_keyviaPresetTextKeys(text_keys.go, home.go)serverTextwith English fallback via newpresetLabel/presetShortTexthelpers (recipes.ts); home-row picker, variant hints, row form, and Discover row titles now show translated textrowBodyin discoverLayoutModel.ts to strip server-addedtitle_key/title_argsbefore writing row layoutweb.settings.historyImport.processedto...processedSoFarandweb.home.addRow.rules.noRulesCollectionto...noRulesCollectionYet, and removesweb.catalog.letters.*,web.catalog.mediaType.*,web.catalog.page.*,web.collections.copy.previewEveryLibrary, andweb.home.addRow.rules.chooseLibrarieskeys; title keys are only present for built-in default titles — custom or renamed rows/seasons get no keyMacroscope summarized 9cf8679.