Skip to content

fix(platform): bound i18n topic loading and test its wiring #5235

Closed

Description

@tale-code-bot

Part 2 of #4435, split off by its triage on the board (task TALE-79, which works part 1: the ICU checks and the plural mistakes).

Paths are at train 1e58056878048ec3061d16f5ff2b742adf05c8da. The items come from a post-merge review that read code and CI logs; nothing was run. Check each at your base and name any that is already done.

Loading

Tests and guards

  • The namespace guard checks less than the plugin trusts. services/platform/lib/i18n/topic-references.test.ts (with packages/ui/src/vite/message-topics.ts) only flags useT/useTranslation argument 0, getFixedT argument 1 and a property named exactly ns; the plugin also reads …Namespace(s) properties and 'topic:key' literals. A computed entityNamespace: x, <Trans ns={x}> or t(`${ns}:key`) passes both, and English then shows raw keys. Every current entityNamespace is a literal, so nothing is missed today. Nothing asserts that the scan finds any files at all.
  • The symlink fix has no test. services/platform/scripts/messages-topics.test.ts:181 runs realpathSync on its temp root, so the symlink case fixed in f66f5e2e23 is never exercised; the old code passes too.
  • Wiring with no test. sessionLocaleReady() (switches the language once and never rejects), ensureTopic in useT (packages/ui/src/i18n/client.tsx:129), attachTopics in initServiceI18n (packages/ui/src/i18n/init-service.ts:176) and the 4 s default wait (the tests use waitMs: 50). Removing any one of them passes every test.
  • The entry-budget check can pass without checking. services/platform/scripts/check-entry-budget.ts skips a chunk that has no .map, and relies on the .yml paths appearing in the map's sources. The documents and projects entries added in 39a2a0e2c6 have no test.

Activity

  1. added
    priority: low
    improvement
    bug
    service: platform
    agent-ready
    on Oct 31, 2026
  2. tale-code-bot commented on Nov 1, 2026

    @tale-code-bot
    CollaboratorAuthor

    The item "The embedding alert's chunk is oversized" is split off as #5240. It is a performance change for the feature line, and this issue is a fix for the stable line.

    TALE-319 on the Development board works the rest of this issue on branch fix/i18n-topic-loading-bounds. Its squashed commit ends with Closes #5235.

  3. added 2 commits that reference this issue on Nov 1, 2026
    e389b2a
    1459379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybugimprovementpriority: lowservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions