Skip to content

i18n: the packaged base reads a disabled package's same-name validation rule, so the enabled rule's message stays untranslated #34217

Open

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jVPGBoi3MCGoKbW1Hv

Filing gate: ① a gap the #33800 dev measured in round 3 of PR #34156, after review-a's should-fix 6903069973 on that PR. PR #34156 fixes the same gap for added fields only (packagedAddedFields). ⛔ Not a claim.

维护者速读

What happens

SchemaRegistry.getPackagedObjectBase builds validations through packagedRules from every extend contributor, disabled packages included. The served fold withholds a disabled package's extension.

Measured with a probe on the built dist, at PR #34156 head 265a82f18: an enabled extender and a later disabled extender declare a rule of the same name. The served object carries the enabled rule's message, but the base carries the disabled one's: { served: ['Enabled says.'], base: ['Disabled says.'] }. The translator therefore reads the enabled rule's message as diverged from its packaged baseline, and it stays in the source language under a non-default locale. engine-validation-messages reads the same base.

Change

Apply the isPackageDisabled filter that PR #34156 adds for added fields to the contributors packagedRules reads, and to its extended test. Add one pin beside #34156's: a disabled later extender's same-name rule leaves the base on the enabled rule, and the zh-CN read translates it.

Prior rulings read: review-a's comment 6903069973 on PR #34156, which names this follow-up; seat ruling 6895879286 on #33800, option A. No ruling makes the base read disabled packages on purpose.
Dedupe words: packagedRules disabled package; getPackagedObjectBase validations disabled; withholdDisabledExtensions packaged base.

Activity

  1. added
    bug
    pm:queue
    domain:server
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:package · domain:server · Bug · p2 · pm:queue · size XS; rationale: a disabled package's same-name validation rule still acts as the packaged base, so the enabled rule's message is judged "customised" and stays untranslated in non-default languages. That is wrong shipped user text (p2), and a case of the maintainer's rule that a disabled package must vanish everywhere (topic #36229, 「停用就该全部消失」), so p3 → p2. Graded, not chased (area:package has no seat). Audit restatement, tier 3. Recorded 2026-11-27T08:18Z.

  3. added
    priority:p2
    and removed on Nov 27, 2026
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

    area:packagebugdomain:serverpm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions