Repository navigation
feat(web): offer shipped languages and show decimals in the app's number format - #3910
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 55 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 lists desktop only, but the language picker, decimal formatting, settings search and sleep-timer changes also affect phone-width web. Please add before-and-after phone-width captures showing those changes, or explain which are unaffected on mobile. CONTRIBUTING.md treats desktop and mobile web as separate evidence surfaces. |
e2d12d8 to
bc54076
Compare
4e303b8 to
a71673f
Compare
bc54076 to
d930a45
Compare
a71673f to
911b7cc
Compare
|
Added phone-width captures to the evidence page: Settings → Accessibility in English (before and after), Spanish and Arabic, and the open picker listing every shipped language. |
d930a45 to
d1936e7
Compare
911b7cc to
609d336
Compare
d1936e7 to
a14c66f
Compare
609d336 to
2b3f760
Compare
a14c66f to
f4cad77
Compare
Spanish labels such as "Proveedores de seguimiento" and "Inicio de sesión y seguridad" were cut off with an ellipsis in the 260px settings and admin sidebars. Labels now wrap to two lines before clamping. Every English label fits on one line, so English renders as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…dding The search field reserved end padding for its clear button even when empty, clipping the Spanish placeholder "Buscar en la configuración" (171px of text in 157px). The padding now applies only while the field has a query. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The trigger kept the 40px utility-button width, so its label overflowed: in Spanish "Temporizador" ran over the volume slider in the audiobook bar, and in English the moon icon slid under it. The button now fits its icon and label. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The value line used leading-none inside an overflow-hidden box, which cut off descenders such as the g in Spanish "ninguno" (Nodes: none). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Spanish weekday names are lower case, so the headings read "miércoles, 4 de noviembre". In a translated interface the heading's first letter is now capitalized for the interface locale, after any isolate marks. English is returned as before, including with a browser that names days in another language. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The pickers and browser matching read a hand-written, empty list, so a regenerated Spanish catalog still showed only English. hasCatalog now reads LOCALES from the generated keys.ts, which lists a language only once it has translations; shipping a language takes only the regenerate. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Speeds, bitrates, sizes, scores and other shown decimals used toFixed, so Spanish read "0.5×" and "42.9 GiB". formatDecimal formats through the app format locale without grouping. It rounds with toFixed first, so US English keeps its bytes (1.005 at two places stays "1.00"). Stored, sent and compared values stay plain, and ratings still match the server's display text. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The admin Libraries type badge and the dashboard Libraries widget printed the
stored type ("movies"); they now show the type's name ("Movies"). Profile and
account access summaries built "Any quality" from "{quality} quality", which
can't be translated as a phrase; the no-limit case has its own message.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The data import size hint dropped ".0" with a regex that only matched a point, so Spanish read "64,0 MB". formatFileSize takes trimZeroDecimal instead. The decimal tests now assert US English and Spanish for each helper, and the README says a new language also needs a SHIPPED_LANGUAGES row. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Admin section reads and a profile row's default title now carry title keys from the server. The admin Home rows list, its switch label, the select label and batch failure titles show the translated title while the row still has the server's own title, and a renamed row's "Renamed from" line names the original in the interface language. Edits and restores keep saving the English title. Without the keys, every title shows as sent. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…view)
Node proxy egress ("12.3 / 20.5 Mbps"), policy evaluation time and autoscan
durations printed one-decimal values with String(), so Spanish kept the point
beside localized neighbours. They keep their rounding and go through
formatDecimal.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…(review) The delete, remove and add-to-libraries dialogs named a keyed row by its English title while the list showed the translation. Batch failures keep the stored title and key and are translated with the rest of their toast, and a profile edit keeps the default title's key so "Renamed from" stays translated. Co-Authored-By: Claude Opus 5.5 <[email protected]>
2b3f760 to
ada6587
Compare
Problem
Related issue: #3188
Validation tasks: none (English changes only in the admin Libraries type badge)
Stacked on #3909; the full stack order is in #3723. Depends on #3728.
The Spanish QA pass found five problems. A translated catalog still offered only English, because the language pickers read a hand-written, empty list. Shown decimals used
toFixed("0.5×", "1.5 Mbps" in Spanish). The admin Libraries type badge printed the stored type ("movies"). Profile access summaries built "Any quality" from a template that can't be translated. Admin Home rows printed built-in titles in English. This fixes all five.Approach
LOCALES, so a language ships when the catalog sync writes it. With the silo-translations release, that is the seven languages from this PR on; the languages PR above carries the per-language fixes.formatDecimal). Values that are stored, sent or compared stay plain; US English is unchanged; ratings keep the server's display text.Validation
Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-3910/
Surface and build: web app and admin, desktop and phone width; English on
mainand on a build of the whole stack with the server's section-title PRs, and Spanish, Arabic, German and Japanese on that build. Phone captures show English (before and after), Spanish and Arabic.Risks
None identified.
Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Add shipped-language translations and locale-aware number formatting across the web app
LocaleProviderresolves the app locale from signed-out choice, cached profile language, and browser inputs;useT/useAppLanguagehooks and lazy app/admin catalog loading back it. Signed-out screens get a language picker, and API requests now sendAccept-Language.formatDecimaland locale-aware helpers; language names use lazily loaded CLDR data throughdisplayLanguageName.no-physical-directionESLint rule with autofix, and makes carousels, scroll strips, and arrow-key handling direction-aware for RTL.INVALID_EMAIL_MESSAGEconstant replaced byinvalidEmailMessage(),LANGUAGESreplaced bylanguageOptions(),mediaTypePluralremoved fromrequestServerModel.ts, label maps made private incollections/types.tsandshelves.ts) need in-tree callers verified; RTL layout fixes touchweb/src/lib/utils.tsclass merging anduseScrollStripoverflow detection.Macroscope summarized 2b3f760.