Repository navigation
feat(web): translate the shared helpers, and write possessives as whole messages - #3907
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 56 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. |
💡 Codex Reviewhttps://github.com/Silo-Server/silo-server/blob/3fc73850193c30dc724d589d1c8d1c6d475c6e29/web/src/locales/en.json#L112959-L112963 The regenerated catalog introduces required arguments without updating the existing callers. For example, ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
4aba3d6 to
bb9d4e2
Compare
3fc7385 to
569dbaa
Compare
|
On the Codex note about required placeholders: it read an earlier head (3fc7385). The current head carries 43ed24e before the regen commit, which passes the new arguments at each caller: |
569dbaa to
603645e
Compare
bb9d4e2 to
1a1d413
Compare
603645e to
80b9e1f
Compare
4e75cd8 to
25003a9
Compare
Converts what the area extractions left for shared ownership: formatting helpers (sizes, bitrates, runtimes, relative times, manga chapters, calendar labels), tab titles, sort labels, TMDB genres and request-routing options, request access text, select-mode and pagination counts, and the toasts the shared query hooks raise. Saved rule names, synced-list names and Discover chart titles stay English, since the code stores or compares them. Counts a user can set print through string placeholders. English is unchanged apart from "of 1 overrides" -> "of 1 override". The converted files go on the ESLint guard, with components/sessions and components/overlays/settings, which the profiles and settings extraction converted. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ut of web.admin
The catalog now allows an apostrophe after a placeholder, so the empty
and no-op tags that kept "{name}'s" byte-identical become plain
placeholders, which also isolates the names in right-to-left languages.
Device settings no longer passes a code-built "Sam's"/"your" into its
messages.
Device platform labels, the signing-secret dialog, the plugin schema
form and the playback method labels show on user settings pages too,
so their keys move from web.admin.* to web.common.*: admin text loads
only with the admin area.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The catalog turned literal quantities in seven web messages into
placeholders: "Start From Episode 1", the stream bitrate hints, the
subtitle quota windows ("24 hours", "7 days", "30 days") and the subtitle
upload size. Each call site passes the old value, so English is unchanged
and the numbers follow the screen's digits.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The settings manifest writes skip interval options as text ("10 seconds"),
which the generic settings controls showed as written. They now use the
catalog's player.seekInterval.choice message with the option's value, as
the other clients do, so the seconds follow the screen's digits. English
is unchanged. Builds with the regenerated catalog in the next commit.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
….09-5ca0019 Generated by scripts/sync-translations --version 2026.11.09-5ca0019. The area PRs below this one built against an intermediate catalog; from here on the output is the release. Co-Authored-By: Claude Opus 5.5 <[email protected]>
80b9e1f to
8300e51
Compare
Problem
Related issue: #3188
Validation tasks: none (English output is unchanged apart from one plural fix in an admin error)
Stacked on #3906; the full stack order is in #3723.
The helpers several areas share (formatting, tab titles, sort and genre labels, counts, query-hook toasts) are still hardcoded English, so every translated screen keeps English fragments. Possessives are also built in code ("Sam's"), which can't be translated. This converts the helpers, writes possessives as whole messages, and brings the generated catalog back to the silo-translations release.
Approach
Formatting helpers (sizes, bitrates, runtimes, relative times, manga chapters, calendar labels), tab titles, sort labels, TMDB genres and request-routing options, request access text, select-mode and pagination counts, and the toasts the shared query hooks raise now come from the catalog, under
web.common.*(any user) andweb.admin.common.*(admin only). Saved rule names, synced-list names and Discover chart titles stay English, since the code stores or compares them. Counts a user can set print through string placeholders.Possessives are whole messages with the owner's name as a placeholder, so translators adapt the structure and the name is isolated in right-to-left languages. Text non-administrators can see moves from
web.admin.*toweb.common.*(device platform labels, signing-secret dialog, plugin schema form, playback method labels), since admin text loads only with the admin area.Two caller fixes come with the release: seven messages gained quantity placeholders, so their call sites pass the old values (English unchanged), and the generic settings controls show skip-interval choices through
player.seekInterval.choiceinstead of the manifest's literal "10 seconds".The last commit regenerates
web/src/locales/from the silo-translations release2026.11.09-5ca0019, replacing the intermediate output #3900 to #3906 used.Validation
Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-3907/
Surface and build: web app and admin, desktop; English on
mainand on a build of the whole stack, and Spanish, Arabic, German and Japanese on that build.Risks
Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Translate the web app UI with react-intl and write possessives as whole messages
useT/useAppLanguagehooks, and anAppIntlProviderwired into the app shell viaLocaleProvider.catalogPartsVite plugin that splits locale imports into app andweb.admin.-prefixed admin parts, with tests in vite.config.test.ts. Adds a sync-translations script with checksum and path-safety checks.Accept-Languageon API requests, and declaresreact-intlandeslint-plugin-formatjsin package.json.useAdminMessagesthrows a recorded error while it is unavailable. Numeric output (dates, counts, sizes) now uses the app locale instead of the runtime default. Tests wrap rendered components in an EnglishAppIntlProviderand load admin English messages in test-setup.ts.Macroscope summarized 80b9e1f.