Skip to content

fix(i18n): print Arabic numbers in one set of digits and keep episode codes Latin - #3912

Merged
Quick104 merged 18 commits into
mainfrom
i18n/web-ship-fixes
Nov 10, 2026
Merged

Quick104 merged 18 commits into
mainfrom
i18n/web-ship-fixes

Conversation

@Quick104

@Quick104 Quick104 commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: #3188
Validation tasks: none (English and the non-Arabic languages are unchanged)

Stacked on #3911; the full stack order is in #3723.

On an Arabic-region browser, dates and Intl numbers used Arabic-Indic digits while message counts, years, relative times and the plural # stayed Latin, so one line mixed both. Episode codes then went the other way and read "S٠١E٠٥". This makes Arabic numbers consistent and keeps codes Latin.

Approach

  • In Arabic, every number on screen uses the digits of the locale the app formats with: Arabic-Indic on ar-EG and ar-SA, Latin on ar-AE, ar-MA or a plain ar choice. createAppIntl names those digits in the Arabic formatter's locale (ar-u-nu-arab), so the plural # follows them; message values, relative times, displayed years and year ranges, decades, season lists and the catalog filter count go through the same formatter.
  • Numbers pass to web messages as numbers, so the formatter applies the digits.
  • Displayed timecodes (the player clock, scrubber preview, chapter list, sleep timer, resume label and admin playback positions) take the same digits; the timeline and transport stay left to right. Values sent to the server, written to a URL, used for seeking, or typed into the marker editor stay in Latin digits.
  • Episode and season codes print ASCII digits in every language (codeNumber()), and phrases keep the screen's digits: the play button reads "البدء من الحلقة ١" and spoken labels "الموسم ١، الحلقة ٥".

Validation

  • Web tests, typecheck, ESLint, prettier, the size ratchet and the bidi check pass on this branch. New tests cover the digit rule per Arabic region and the code rule; each fails without its change.
  • English and the other six languages: unchanged on the compared screens.

Evidence

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

Surface and build: web app, desktop and phone width; English on main and on a build of the whole stack, and Arabic (plain and Arabic-region browser) on that build.

Risks

None identified.

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); adversarial rounds by Codex (gpt-6.1-sol) on the branches it was built from, findings fixed. Background review by Codex (gpt-6.1-sol) on 0d7b5b9: F1 and F2 (a step total and season numbers kept Latin digits) fixed in 65c1be8; the Codex bot's schedule-minute finding fixed in ae5afac.

🤖 Generated with Claude Code

Note

Localize web UI text, format numbers by app locale, and keep episode codes Latin

  • Adds a full i18n layer: an app/admin message-catalog loader (catalog.ts), a React Intl formatter (format.ts), useT/useAppLanguage hooks, and a LocaleProvider wrapped around the app shell in App.tsx.
  • Replaces hard-coded English strings across pages, components, hooks, and formatters with translation lookups; numbers, dates, durations, and file sizes now format through the app locale (numberFormat.ts, datetime.ts).
  • Season and episode numbers use a shared codeNumber formatter so episode codes stay Latin even when the UI uses a different numbering system, while Arabic output picks its numbering system from the format locale in createAppIntl.
  • Converts hundreds of physical left/right CSS utilities to logical start/end properties and adds RTL support: mirrored icons, direction-aware arrow-key handling (readingArrowKey in direction.ts), RTL carousel scroll handling, and bidi-text styling; code blocks and paths are pinned left-to-right.
  • Adds an ESLint rule (no-physical-direction) to autofix physical-side utilities, a catalogParts Vite plugin for app/admin catalog splitting, and a signed-out language picker on auth screens.
  • Risk: massive sweep touches many label-producing helpers; consumers relying on removed exports like MARKER_LABELS, SHELF_ORDER_LABELS, and the LANGUAGES array must use the new helpers (MARKER_LABEL_KEYS, shelfOrderLabel, languageOptions()). formatPlayMethod and settings-search normalization fix old bugs but change matching behavior for non-ASCII scripts.

Macroscope summarized 1be6ece.

@silo-triage silo-triage Bot added the size/XXL 1000–2999 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

Explain Change →

Important

Review skipped

We couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting @coderabbitai full review.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
Walkthrough

This change adds locale-aware number formatting for translated messages and standalone display values. It adds helpers for localized numbers and ASCII-digit codes, then updates web call sites to pass numeric interpolation values while retaining existing selection and calculation logic.

Changes: Locale-aware number formatting

Layer / File(s) Summary
Formatter and locale setup
web/src/i18n/*, web/src/hooks/useAppLocale.tsx, web/src/hooks/useAppLocale.test.tsx, web/src/lib/timeAgo.ts
The formatter uses the format locale’s numbering system for numeric message values. New helpers format standalone numbers and preserve ASCII digits in technical codes. Tests and documentation cover Arabic digits, English fallback text, and code formatting.
Components and query hooks
web/src/components/*, web/src/hooks/queries/*
Components and query hooks pass numeric interpolation values to translations. Some standalone years and episode identifiers use numberText or codeNumber.
Shared library helpers
web/src/lib/*
Library helpers pass numeric interpolation values to translations and use the formatting helpers for standalone numbers and episode codes.
Pages, settings, and player views
web/src/pages/*, web/src/playback/*, web/src/player/*
Pages, settings, watch-together, playback, and player views pass numeric values to translations and use numberText or codeNumber where appropriate.

Estimated code review effort: 4 (Complex) | ~60 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant LocaleProvider
  participant AppIntl
  participant MessageFormatter
  LocaleProvider->>AppIntl: create formatter with formatLocale
  AppIntl->>MessageFormatter: prepare numeric values using locale digits
  MessageFormatter->>AppIntl: return formatted translated message
Loading

Suggested reviewers: rhainland

Merge Risk: Minimal · previous review 614af

No merge-blocking risk is established for the locale-aware formatting change.

Security architecture risk: Low · up to 614af

The inspected changes affect displayed numbers without changing plugin validation decisions or administrative request actions. No introduced security issue was established, but coverage of the wider change remains incomplete.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The demonstrated propagation spans browser presentation, including administrative validation errors, bulk-action result messages and playback clocks. In the inspected privileged consumers, localized values do not replace request identifiers, action parameters or validation comparisons. This bounds those consumers, not every changed screen.

Trust Boundaries and Controls

  • observed — The plugin-schema change alters interpolation of validation thresholds and counts, not required-field, pattern, length or numeric validation decisions. Its SchemaForm caller continues updating values independently through onChange; the validator returns errors rather than transformed submission values.

Resilience and Maintainability Implications

  • observed — The full-base comparison of useBulkRequestAction changes only translated result values. Request identity and dispatch, bounded concurrency, retry policy, per-request failure accounting, settlement invalidation and reset behavior remain unchanged. Consequently, no PR-introduced weakening of those transition or recovery behaviors was established.
Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 43.60% 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 Passed checks: 4 passed

Check name Status Explanation
Title check Passed The title clearly identifies the main change: consistent Arabic number formatting while keeping episode codes in Latin digits.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description explains the Arabic number-formatting issue and the changes to localize displayed numbers while keeping episode codes in Latin digits. It matches the changeset.
Full details: Docstring Coverage

Explanation

Docstring coverage is 43.60% 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 172 functions across 102 files.

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

@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:16:20.664212Z 3809c94 New commits
🔒 Security Review ✅ Completed 2026-11-10T02:17:26.161539Z 3809c94 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0d7b5b9606

ℹ️ 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".

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

@silo-triage silo-triage Bot added bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish stacked Base is another open PR; merge in stack order named in the body labels Nov 9, 2026
@silo-triage

silo-triage Bot commented Nov 9, 2026

Copy link
Copy Markdown

The Evidence section lists desktop captures, but the changed counts, years and episode labels also appear at phone width. Please add before-and-after mobile web captures showing the Arabic digit rule and Latin episode codes on the same screen and data, with the builds identified, or show why mobile is unaffected.

@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 0d7b5b9)

Two remaining cases introduce mixed digits with an Arabic-Indic format locale. Both were reproduced with the pinned formatter and Arabic catalog.

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

Comment thread web/src/components/calm/StepDialog.tsx Resolved
@Quick104
Quick104 force-pushed the i18n/web-ship-languages branch from dbbc007 to 3eb9a0b Compare November 9, 2026 19:01
@Quick104
Quick104 force-pushed the i18n/web-ship-fixes branch from 0d7b5b9 to 65c1be8 Compare November 9, 2026 19:01
@Quick104

Quick104 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Added phone-width captures to the evidence page: the series episode list in English (before and after) and Arabic, and Home on an Arabic (Egypt) browser with Arabic-Indic digits.

@Quick104
Quick104 force-pushed the i18n/web-ship-fixes branch from ae5afac to 707f912 Compare November 9, 2026 19:14
@Quick104
Quick104 force-pushed the i18n/web-ship-languages branch from 3eb9a0b to 1d7ff1a Compare November 9, 2026 19:14

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 707f912a0c

ℹ️ 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".

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

@Quick104
Quick104 force-pushed the i18n/web-ship-fixes branch from 707f912 to 83482f8 Compare November 9, 2026 19:24

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 83482f8bf5

ℹ️ 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".

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

Comment thread web/src/i18n/format.ts Resolved
@Quick104
Quick104 force-pushed the i18n/web-ship-fixes branch from aed2a13 to 8c7aed1 Compare November 9, 2026 19:40

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8c7aed1431

ℹ️ 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".

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

Comment thread web/src/pages/AdminLogs.tsx Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 6

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (3)

Minor · Localize the short-duration fallback digits. · duration.ts:12

web/src/lib/audiobooks/duration.ts:12
Minor · Functional Correctness · Quick win

Localize the short-duration fallback digits.

In ar-EG or ar-SA, the changed positive-duration branches use Arabic-Indic digits. Zero-duration input still returns the string "0", and a positive duration that rounds below one minute still returns "1". Pass numbers in these two branches as well, so chapter and group duration labels use consistent digits.

Also applies to: 16-16

Minor · Localize the season metadata year. · mediaRequests.ts:332

web/src/lib/mediaRequests.ts:332
Minor · Functional Correctness · Quick win

Localize the season metadata year.

When formatRequestSeasonMeta displays an air date and an episode count in ar-EG or ar-SA, the changed episode count uses Arabic-Indic digits. The year from season.air_date.slice(0, 4) remains Latin digits on the same line. Format that year with numberText before adding it to parts.

Minor · Localize the desktop catalog result count. · Catalog.tsx:473

web/src/pages/Catalog.tsx:473
Minor · Functional Correctness · Quick win

Localize the desktop catalog result count.

In ar-EG or ar-SA, the changed translated resultCount uses Arabic-Indic digits on phone-width screens. The desktop branch still renders totalItems directly, so the same catalog count uses Latin digits there. Render numberText(totalItems) in the desktop branch.

Nitpick comments: 1

web/src/hooks/useAppLocale.test.tsx: 1

25-35: Trivial · Maintainability & Code Quality · Quick win

Test Arabic regions through LocaleProvider.

The current provider test selects only ar. A provider that always passes ar to createAppIntl can pass this test, even if it ignores the selected region. Add explicit ar-EG and ar-AE cases with fixed expected locales.

Suggested test change

 vi.mock("@/i18n", async (importOriginal) => ({
   ...(await importOriginal<typeof import("@/i18n")>()),
   loadTranslations: vi.fn(),
 }));
 
+vi.mock("@/lib/appLocale", async (importOriginal) => ({
+  ...(await importOriginal<typeof import("@/lib/appLocale")>()),
+  browserLocaleInputs: () => ({ navigatorLanguages: ["en-US"], runtimeLocale: "en-US" }),
+}));
+
 afterEach(() => {
@@
       name: "applies the language once its catalog loads",
       load: "resolve",
+      choice: "ar",
       lang: "ar",
@@
       intlLocale: `ar-u-nu-${new Intl.NumberFormat("ar").resolvedOptions().numberingSystem}`,
     },
+    {
+      name: "uses Arabic-Indic digits for ar-EG",
+      load: "resolve",
+      choice: "ar-EG",
+      lang: "ar",
+      dir: "rtl",
+      intlLocale: "ar-u-nu-arab",
+    },
+    {
+      name: "uses Latin digits for ar-AE",
+      load: "resolve",
+      choice: "ar-AE",
+      lang: "ar",
+      dir: "rtl",
+      intlLocale: "ar-u-nu-latn",
+    },
     {
       name: "falls back to English when its catalog fails",
       load: "reject",
+      choice: "ar",
       lang: "en",
@@
-  ] as const)("$name", async ({ load, lang, dir, intlLocale }) => {
+  ] as const)("$name", async ({ load, choice, lang, dir, intlLocale }) => {
@@
-    setSignedOutLanguage("ar");
+    setSignedOutLanguage(choice);
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: 9855f9c0-733b-44cf-9ec9-19ed8f678d05
Commits

Reviewing files that changed from the base of the PR and between b2f205f and 83482f8.

Files selected for processing: 284

  • web/src/components/AdminCatalogMaintenance.tsx
  • web/src/components/AdminSessionActions.tsx
  • web/src/components/AdminSidebar.tsx
  • web/src/components/AdminUserDeleteDialog.tsx
  • web/src/components/AdminUserPasswordResetDialog.tsx
  • web/src/components/CollectionTemplateGallery/CollectionTemplateCard.tsx
  • web/src/components/ContinueWatchingCard.tsx
  • web/src/components/EditMetadataDialog.tsx
  • web/src/components/EpisodeRow.tsx
  • web/src/components/FilterRuleEditor.tsx
  • web/src/components/FolderBrowser.tsx
  • web/src/components/GlobalSearch.tsx
  • web/src/components/HeroBanner.tsx
  • web/src/components/ItemCard.tsx
  • web/src/components/ItemLibraryPicker.tsx
  • web/src/components/LibraryMultiSelect.tsx
  • web/src/components/MangaFilesDialog.tsx
  • web/src/components/MatchItemDialog.tsx
  • web/src/components/MediaLocations.tsx
  • web/src/components/MetadataTranslatePanel.tsx
  • web/src/components/RequestSeasonsDialog.tsx
  • web/src/components/RequestToAddSection.tsx
  • web/src/components/SaveBar.tsx
  • web/src/components/SeasonAccordion.tsx
  • web/src/components/SectionItemCard.tsx
  • web/src/components/ServerActivity.tsx
  • web/src/components/SplitItemDialog.tsx
  • web/src/components/UserPolicyFields.tsx
  • web/src/components/admin/DeviceConnections.tsx
  • web/src/components/admin/EmailTestRow.tsx
  • web/src/components/admin/brandingAssetSpecs.ts
  • web/src/components/admin/dashboard/DashboardGrid.tsx
  • web/src/components/admin/dashboard/format.ts
  • web/src/components/admin/dashboard/widgets/LibrariesWidget.tsx
  • web/src/components/admin/dashboard/widgets/NowPlayingWidget.tsx
  • web/src/components/admin/dashboard/widgets/RecentActivityWidget.tsx
  • web/src/components/admin/dashboard/widgets/ScanActivityWidget.tsx
  • web/src/components/admin/dashboard/widgets/ScannerWidget.tsx
  • web/src/components/admin/dashboard/widgets/TranscodeNodesWidget.tsx
  • web/src/components/admin/dashboard/widgets/statTiles.tsx
  • web/src/components/admin/deviceOverrides.tsx
  • web/src/components/admin/libraries/LibraryTranslatePanel.tsx
  • web/src/components/admin/libraries/MetadataMatcherQueuesSection.tsx
  • web/src/components/admin/plugins/CommunityCatalogControl.tsx
  • web/src/components/admin/plugins/schemaFormUtils.ts
  • web/src/components/admin/trickplay/trickplayStatus.ts
  • web/src/components/audiobooks/AudiobookGroupsView.tsx
  • web/src/components/boxsets/BoxSetCard.tsx
  • web/src/components/calendar/WeekNavigator.tsx
  • web/src/components/calm/SelectModeBar.tsx
  • web/src/components/calm/StepDialog.tsx
  • web/src/components/catalog/CatalogFilterBar.tsx
  • web/src/components/catalog/CatalogFiltersPanel.tsx
  • web/src/components/catalog/LetterBar.tsx
  • web/src/components/collections/CollectionGuidedRulesEditor.tsx
  • web/src/components/collections/DeleteCollectionsDialog.tsx
  • web/src/components/collections/StarterPacksDialog.tsx
  • web/src/components/collections/admin/CollectionListItem.tsx
  • web/src/components/collections/admin/GroupsBoard.tsx
  • web/src/components/collections/collectionBuilderFields.ts
  • web/src/components/collections/editor/CollectionEditor.tsx
  • web/src/components/collections/editor/CollectionMetaLine.tsx
  • web/src/components/collections/editor/CollectionPreviewPane.tsx
  • web/src/components/collections/editor/ManualContentsPanel.tsx
  • web/src/components/collections/editor/SyncStatusBlock.tsx
  • web/src/components/collections/fields/ScheduleField.tsx
  • web/src/components/heroMetadata.ts
  • web/src/components/homeRows/HomeRowsPage.tsx
  • web/src/components/homeRows/addRow/CollectionPicker.tsx
  • web/src/components/homeRows/addRow/CuratedTitlesEditor.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/VariantChips.tsx
  • web/src/components/profiles/AllowCollectionDialog.tsx
  • web/src/components/profiles/AllowedTitlesSection.tsx
  • web/src/components/profiles/HouseholdStreamsPanel.tsx
  • web/src/components/profiles/ProfileEditorDialog.tsx
  • web/src/components/profiles/pinLockout.ts
  • web/src/components/sections/EditableSectionRows.tsx
  • web/src/components/settings/AdvancedSection.tsx
  • web/src/components/settings/DeviceList.tsx
  • web/src/components/settings/ProviderTile.tsx
  • web/src/components/settings/SettingsSearchInput.tsx
  • web/src/components/settings/lastSeenLabel.ts
  • web/src/components/ui/calendar.tsx
  • web/src/components/ui/pagination.tsx
  • web/src/components/ui/searchable-select.tsx
  • web/src/hooks/admin/useSettingsHealth.ts
  • web/src/hooks/queries/admin/collections.ts
  • web/src/hooks/queries/admin/history-import-admin.ts
  • web/src/hooks/queries/admin/libraries.ts
  • web/src/hooks/queries/admin/users.ts
  • web/src/hooks/queries/items.ts
  • web/src/hooks/queries/notifications.ts
  • web/src/hooks/queries/sections.ts
  • web/src/hooks/queries/watchProviders.ts
  • web/src/hooks/useAppLocale.test.tsx
  • web/src/hooks/useAppLocale.tsx
  • web/src/i18n/README.md
  • web/src/i18n/format.test.ts
  • web/src/i18n/format.ts
  • web/src/i18n/index.ts
  • web/src/lib/audiobooks/chapters.ts
  • web/src/lib/audiobooks/duration.ts
  • web/src/lib/boxSets.ts
  • web/src/lib/calendarWeek.ts
  • web/src/lib/collections/copy.ts
  • web/src/lib/collections/rows.ts
  • web/src/lib/collections/shelves.ts
  • web/src/lib/collections/starterPacks.ts
  • web/src/lib/date.ts
  • web/src/lib/episodeCardLabels.ts
  • web/src/lib/historyRemoval.ts
  • web/src/lib/homeRows/describe.ts
  • web/src/lib/homeRows/seasonal.ts
  • web/src/lib/loginSessionDevice.ts
  • web/src/lib/mangaChapters.ts
  • web/src/lib/markerProvenance.ts
  • web/src/lib/mediaFormat.ts
  • web/src/lib/mediaRequests.ts
  • web/src/lib/pluginStatusIndicator.ts
  • web/src/lib/profile-management.ts
  • web/src/lib/profileDataTypes.ts
  • web/src/lib/requestAccess.ts
  • web/src/lib/requestRoutingOptions.ts
  • web/src/lib/scanRuns.ts
  • web/src/lib/taskProgress.ts
  • web/src/lib/timeAgo.ts
  • web/src/lib/upcomingEventPresentation.ts
  • web/src/pages/AdminAccessGroups.tsx
  • web/src/pages/AdminActivity.tsx
  • web/src/pages/AdminBackups.tsx
  • web/src/pages/AdminCollections.tsx
  • web/src/pages/AdminDevices.tsx
  • web/src/pages/AdminDiagnostics.tsx
  • web/src/pages/AdminHistoryImport.tsx
  • web/src/pages/AdminHomeRows.tsx
  • web/src/pages/AdminLibraries.tsx
  • web/src/pages/AdminLogs.tsx
  • web/src/pages/AdminPlaybackHistory.tsx
  • web/src/pages/AdminPluginDetail.tsx
  • web/src/pages/AdminPlugins.tsx
  • web/src/pages/AdminRecommendations.tsx
  • web/src/pages/AdminSubtitles.tsx
  • web/src/pages/AdminTaskDetail.tsx
  • web/src/pages/AdminTasks.tsx
  • web/src/pages/AdminUsers.tsx
  • web/src/pages/BoxSetPage.tsx
  • web/src/pages/Catalog.tsx
  • web/src/pages/Collections.tsx
  • web/src/pages/EbookReader.tsx
  • web/src/pages/ItemDetail/AudiobookContent.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/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/EpisodeCarousel.tsx
  • web/src/pages/ItemDetail/components/MediaInfoDialog.tsx
  • web/src/pages/ItemDetail/components/MetadataBadges.tsx
  • web/src/pages/ItemDetail/components/SeasonEpisodeGrid.tsx
  • web/src/pages/ItemDetail/components/SubtitleSearchDialog.tsx
  • web/src/pages/ItemDetail/components/VersionDropdown.tsx
  • web/src/pages/ItemDetail/components/episodeCardText.ts
  • web/src/pages/ItemDetail/components/mediaSpecSections.ts
  • web/src/pages/ItemDetail/components/versionFormatUtils.ts
  • web/src/pages/ItemDetail/itemDetailLayout.ts
  • web/src/pages/Notifications.tsx
  • web/src/pages/PersonDetail.tsx
  • web/src/pages/RecommendationsSection.tsx
  • web/src/pages/Requests.tsx
  • web/src/pages/TasteSeed.tsx
  • web/src/pages/admin-backups/BackupTable.tsx
  • web/src/pages/admin-backups/BackupWarningDetails.tsx
  • web/src/pages/admin-backups/RestoreChoose.tsx
  • web/src/pages/admin-backups/RestoreRows.tsx
  • web/src/pages/admin-backups/RestoreRun.tsx
  • web/src/pages/admin-backups/RestoreUsers.tsx
  • web/src/pages/admin-backups/backupPresentation.ts
  • web/src/pages/admin-backups/restoreGroups.ts
  • web/src/pages/admin-backups/restoreModel.ts
  • web/src/pages/admin-backups/uploadModel.ts
  • web/src/pages/admin-backups/warningDetails.ts
  • web/src/pages/admin-downloads/DeviceCopiesTab.tsx
  • web/src/pages/admin-downloads/EditLocationDialog.tsx
  • web/src/pages/admin-downloads/HistoryTab.tsx
  • web/src/pages/admin-downloads/PreparationTab.tsx
  • web/src/pages/admin-downloads/StorageTab.tsx
  • web/src/pages/admin-downloads/downloadStoragePresentation.ts
  • web/src/pages/admin-policy/PolicyEditorPanel.tsx
  • web/src/pages/admin-policy/PolicySimulatePanel.tsx
  • web/src/pages/admin-policy/PolicyVersionHistory.tsx
  • web/src/pages/admin-policy/policyPresentation.tsx
  • web/src/pages/admin-requests/RequestQueue.tsx
  • web/src/pages/admin-requests/RequestQueueDialog.tsx
  • web/src/pages/admin-settings/AIModelField.tsx
  • web/src/pages/admin-settings/AISettings.tsx
  • web/src/pages/admin-settings/ChatGPTConnection.tsx
  • web/src/pages/admin-settings/CompatibilityProxiesSettings.tsx
  • web/src/pages/admin-settings/InviteCodesTab.tsx
  • web/src/pages/admin-settings/NotificationsAdminSettings.tsx
  • web/src/pages/admin-settings/RequestRoutePreview.tsx
  • web/src/pages/admin-settings/RequestRoutingMode.tsx
  • web/src/pages/admin-settings/RequestServers.tsx
  • web/src/pages/admin-settings/SearchStatusPanel.tsx
  • web/src/pages/admin-settings/ServerNotificationChannels.tsx
  • web/src/pages/admin-settings/SignInProviderSlot.tsx
  • web/src/pages/admin-settings/StorageSettings.tsx
  • web/src/pages/admin-settings/requestRoutingModel.ts
  • web/src/pages/admin-users/detail/UserDetailHeader.tsx
  • web/src/pages/admin-users/detail/access/LibraryAccessCard.tsx
  • web/src/pages/admin-users/detail/access/RequestsCard.tsx
  • web/src/pages/admin-users/detail/access/SignInCard.tsx
  • web/src/pages/admin-users/detail/access/policySources.ts
  • web/src/pages/admin-users/detail/activity/DevicesCard.tsx
  • web/src/pages/admin-users/detail/activity/IPAddressesCard.tsx
  • web/src/pages/admin-users/detail/activity/WatchHistoryCard.tsx
  • web/src/pages/admin-users/detail/downloads/DeviceDownloadsCard.tsx
  • web/src/pages/admin-users/detail/downloads/downloadPresentation.ts
  • web/src/pages/admin-users/detail/format.ts
  • web/src/pages/admin-users/detail/overview/AccessSummaryCard.tsx
  • web/src/pages/admin-users/detail/overview/ProfilesCard.tsx
  • web/src/pages/admin-users/detail/overview/RecentlyWatchedCard.tsx
  • web/src/pages/admin-users/detail/overview/StatsRow.tsx
  • web/src/pages/admin-users/detail/overview/WatchingNowCard.tsx
  • web/src/pages/admin-users/detail/preferences/PreferencesTab.tsx
  • web/src/pages/admin-users/detail/preferences/levels.ts
  • web/src/pages/admin-users/detail/profiles/ProfilesTab.tsx
  • web/src/pages/admin/autoscan/ActivityPanel.tsx
  • web/src/pages/admin/autoscan/PathMappingEditor.tsx
  • web/src/pages/admin/autoscan/RewriteSuggestions.tsx
  • web/src/pages/admin/autoscan/sourceDisplay.ts
  • web/src/pages/adminActivityPresentation.ts
  • web/src/pages/adminDownloadPreparationPresentation.ts
  • web/src/pages/adminNodesPresentation.ts
  • web/src/pages/audiobooks/components/ChaptersSection.tsx
  • web/src/pages/audiobooks/player/NowListening.tsx
  • web/src/pages/audiobooks/player/PlayerSettingsMenu.tsx
  • web/src/pages/settings/AccountSettings.tsx
  • web/src/pages/settings/CardOverlaySettings.tsx
  • web/src/pages/settings/DeviceSettings.tsx
  • web/src/pages/settings/HistoryImportSettings.tsx
  • web/src/pages/settings/LibrarySettings.tsx
  • web/src/pages/settings/NotificationsSettings.tsx
  • web/src/pages/settings/PersonalizeSettings.tsx
  • web/src/pages/settings/PlaybackConnection.tsx
  • web/src/pages/settings/PlaybackSettings.tsx
  • web/src/pages/settings/SubtitleAppearanceSettings.tsx
  • web/src/pages/settings/WatchProvidersSettings.tsx
  • web/src/pages/settings/WebhookSyncSettings.tsx
  • web/src/pages/setup-wizard/librarySummary.ts
  • web/src/pages/setup-wizard/steps/SubtitlesStep.tsx
  • web/src/pages/watchtogether/StartPartySheet.tsx
  • web/src/pages/watchtogether/room/RoomRail.tsx
  • web/src/pages/watchtogether/room/RoomStatusStrip.tsx
  • web/src/pages/watchtogether/room/browse/BrowseShelf.tsx
  • web/src/pages/watchtogether/room/picker/MovieDetailPanel.tsx
  • web/src/pages/watchtogether/room/picker/PickerRow.tsx
  • web/src/pages/watchtogether/room/picker/SeriesDrilldown.tsx
  • web/src/pages/watchtogether/room/stage/LobbyStage.tsx
  • web/src/pages/watchtogether/room/stage/PlayingStage.tsx
  • web/src/pages/watchtogether/room/stage/ReadyCheckRow.tsx
  • web/src/pages/watchtogether/room/stage/StagedHero.tsx
  • web/src/pages/watchtogether/room/stage/SuggestionList.tsx
  • web/src/pages/watchtogether/room/stage/VotingStage.tsx
  • web/src/playback/WatchPlaybackChrome.tsx
  • web/src/player/bandwidth-measure.ts
  • web/src/player/components/AudioTrackMenu.tsx
  • web/src/player/components/NextEpisodeOverlay.tsx
  • web/src/player/components/PlayingNextScreen.tsx
  • web/src/player/components/SeekBar.tsx
  • web/src/player/components/SleepTimerMenu.tsx
  • web/src/player/components/SubtitleMenu.tsx
  • web/src/player/components/SubtitleSyncIndicator.tsx
  • web/src/player/components/SubtitleTranslateModal.tsx
  • web/src/player/components/VideoPlayer.tsx
  • web/src/player/components/VolumeControl.tsx
  • web/src/player/components/subtitleTranslateRequest.ts
  • web/src/player/playback-info.ts
  • web/src/player/utils/subtitleSync.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

Comment thread web/src/hooks/queries/watchProviders.ts Resolved
Comment thread web/src/pages/AdminDevices.tsx Resolved
Comment thread web/src/pages/AdminLogs.tsx Resolved
@Quick104
Quick104 force-pushed the i18n/web-ship-languages branch from 006ae9c to d376f6e Compare November 9, 2026 20:08
@Quick104
Quick104 force-pushed the i18n/web-ship-fixes branch from 324320c to 1c87693 Compare November 9, 2026 20:08
@Quick104

Quick104 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

On CodeRabbit's findings outside the diff (review of 83482f8), all fixed in 1c87693:

  • lib/audiobooks/duration.ts: the zero and under-a-minute fallbacks pass numbers.
  • lib/mediaRequests.ts: a season's year goes through numberText.
  • pages/Catalog.tsx: the desktop result count goes through numberText.

The suggested ar-EG/ar-AE cases for useAppLocale.test.tsx are not added: createAppIntl's numbering-system choice is already covered in format.test.ts, and the provider only passes the format locale through.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 11f024bcbf

ℹ️ 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".

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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b64091c328

ℹ️ 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".

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

@Quick104
Quick104 changed the base branch from i18n/web-ship-languages to main November 10, 2026 02:12
@silo-triage silo-triage Bot added the size/XXXL 3000+ added + deleted lines (all files); change volume, not priority. label Nov 10, 2026
Message values that are numbers were passed as String(n), following a README
rule that a plain {n} groups digits. On the web a plain {n} prints String(n),
so the output is the same; passing the number lets the message helper know it
is a number (next commit). A TypeScript codemod changed only values whose type
is number, in calls to t, translate and formatWith.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot removed the size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority. label Nov 10, 2026
Quick104 and others added 17 commits November 9, 2026 21:13
On an Arabic-region browser (ar-EG, ar-SA), dates and Intl numbers used
Arabic-Indic digits while message counts, the plural #, years and relative
times stayed Latin, so one line mixed both. In Arabic, every number now uses
the digits of the locale the app formats with: Arabic-Indic on ar-EG, Latin
on ar-AE or a plain `ar` choice.

- createAppIntl names those digits in the Arabic formatter's locale
  (ar-u-nu-arab), so the plural # follows them.
- formatWith prints number values in them, only in the language's own
  translation; strings are never changed, so titles, codes and typed text
  keep their digits.
- numberText() does the same for numbers shown outside messages: detail and
  card years, box set years, request years and season lists, episode codes,
  hero slide numbers, the player subtitle and HUD.
- Relative times ("قبل ٣ دقائق") use the same digits.

English and the other languages keep their bytes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The result total beside it now follows the Arabic format locale's digits; the
filter badge printed its count raw, so the toolbar mixed both on ar-EG.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Episode and season codes (S01E05, S1:E2, E5) are technical labels, so they
print ASCII digits in every language, including Arabic on an Arabic-Indic
format locale. Phrases ("Season 2, Episode 5") keep the screen's digits.

- codeNumber() formats a number inside a code, zero-padded where the code
  pads. The episode cards, home hero, player HUD, Up Next, notifications,
  calendar and Watch Together codes use it, as do the admin codes that
  already passed String(n).
- Where the Arabic catalog spells a code out as a phrase (the Watch Together
  pick, its spoiler warning, admin download titles), the call site passes
  the number so the phrase follows the screen.
- Phrases that still passed String(n) now pass numbers: Continue Watching's
  "Season 2 Episode 5", the episode cards' spoken labels, and the calendar's
  "Season 2" (its episode codes stay Latin).

English and the other languages keep their bytes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…gits

The step dialog passed its total and the season list its season numbers
as strings, so in Arabic on an ar-EG or ar-SA format locale they stayed
Latin beside localized digits. They pass as numbers now; the TMDB name
comparison keeps the plain number.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The schedule summary padded the minute as a plain string, so in Arabic
on an ar-EG or ar-SA format locale it stayed Latin beside a localized
hour. It formats through the app's number format now, still two digits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The duration went to the message as a string, so Arabic on an Arabic-Indic
browser printed its age in Arabic-Indic digits and its duration in Latin.
A number prints the same in English and follows the screen's digits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…'s digits

Audiobook and chapter durations passed their zero-padded minutes and
seconds as strings, and an impersonated audit entry passed the target
account ID as one, so Arabic on an Arabic-Indic browser mixed digit sets.
Padded parts go through numberText, as the hero banner's already do, and
the account ID is passed as a number.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Counts, positions and year bounds still went to messages as strings, and the
audiobook fallback durations, the catalog's desktop result count and a season's
year were printed without the screen's digits, so Arabic on an Arabic-Indic
browser mixed digit sets. A plain number prints the same in English.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The "every N hours" preset passed its step as written, as a string, so Arabic
on an Arabic-Indic browser showed "6" among Arabic-Indic times. The step keeps
its written form ("02" stays "02") and takes the screen's digits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The overrides readout printed its total and per-profile counts as Latin text
beside a translated count in Arabic-Indic digits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A rule whose year bounds match is named after that year. Showing it took the
screen's digits, but the name saved through englishText did too, so an
Arabic-Indic browser stored a name in Arabic-Indic digits. The year takes the
screen's digits only when shown.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the screen's digits

The advisory age badge, the audiobook chapter position, policy generations,
collection copy warnings and node memory percentages went to messages as
strings, so Arabic on an Arabic-Indic browser printed them in Latin digits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…screen's digits

The episodes-left badge and the pagination buttons spoke their numbers in the
screen's digits but showed them in Latin ones, and a chapter's start time sat
in Latin digits beside its localized duration.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s in the screen's digits

A sweep of every number still stringified into a message: job result counts,
plugin form bounds, profile age limits, bulk request failures, notification
and AI test durations, frame rates and the hero's year. Codes, IDs, version
tags and HTTP statuses stay in Latin digits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The player clock, scrubber preview, chapter list, sleep timer, resume label,
Watch Together clock, extras durations, marker ranges and admin playback
positions printed Latin digits beside Arabic-Indic text on an Arabic-Indic
browser. Display timecodes now go through numberText; the marker editor's
input values, and anything sent, stored or used for seeking, stay plain.
The timeline and transport keep their left-to-right layout.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The clock row is left to right inside, so it also aligned itself left within
the metadata column; on a wide right-to-left screen it sat far from the
title. It now takes its place at the column's start, like the title.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Quick104
Quick104 force-pushed the i18n/web-ship-fixes branch from 1be6ece to 3809c94 Compare November 10, 2026 02:13
@Quick104
Quick104 merged commit 87782a6 into main Nov 10, 2026
1 check passed
@silo-triage silo-triage Bot added size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority. and removed size/XXXL 3000+ added + deleted lines (all files); change volume, not priority. labels Nov 10, 2026
@Quick104
Quick104 deleted the i18n/web-ship-fixes branch November 10, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish size/XXL 1000–2999 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