Skip to content

i18n: the label ResolveOptions (request locale, fallback chain, sourceLocale else defaultLocale) is assembled in four copies that can drift (follow-up to #34030) #35405

Closed as not planned

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

Filing gate: ② should-fix S2 of the CONTRACT_REVIEW_TIER record on PR #35351 (comment 7003535421), routed by seat 5 as a follow-up under #34030. ⛔ Not a claim; triage sets lane and grade (the seat suggests p3).

What drifts

Once PR #35351 lands, the ResolveOptions that translateObject is handed for a label read are assembled in four places:

The language rule itself lives in one place (translateObject). How its options are put together (request locale, the declared fallbackChain, then sourceLocale else defaultLocale) is repeated, so a later change to one copy can leave refusals and /meta speaking different languages again — the defect #34030 fixed. #35351's claim allowed no new shared helper, so it is a follow-up.

Fix direction

One exported builder that the four call, with a pin that every label reader gets the same options as /meta for the same request.

Dedupe: issue search ResolveOptions builder copies, metaTranslateOptions labelTranslationOf denialLabels → none.

Activity

  1. added
    finding
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    2026-11-19T08:53Z · Closed as not planned at first touch (rules of #35223: an internal refactor with no user effect is not queued). The four ResolveOptions copies agree today; this is drift risk, not a defect. If they diverge, the divergence is a Bug with a user-visible label, filed then.

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

    finding

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions