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.

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:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions