Skip to content

pnpm demo:zh leaves the workspace locale at English, so the record Discussion feed reads "Created Contract … / Updated Contract …" #142

Open

Description

@objectstack-fleet

Filing class: ① user-visible defect (demo setup) — reach: public door, measured in a browser on main f534eef (18.1.0, pnpm demo:zh, Console in zh-CN). Reader: the hotclm lane (scripts/demo.mjs / README), with one question on how a seed may set a workspace setting.

Symptom

On NDA-2026-0023's 讨论 tab every system row reads Created Contract "回归测试 NDA — 已有相对方" / Updated Contract "…" — English verb and English object label, inside an otherwise Chinese page.

Why

@objectstack/plugin-audit 18.1.0 ships the zh-CN templates (activityCreated: '创建了 {{object}} "{{label}}"'), but it renders a summary once, at write time, in the workspace default locale (ADR-0053 localization.locale, audit-writers.ts resolveWriteLocale). pnpm demo:zh switches the seed's language (OS_SEED_LOCALE) and nothing else, so the workspace stays en and every summary written during the demo is English — permanently, since the text is stored.

Fix

Make pnpm demo:zh boot a workspace whose default locale is zh-CN (a setting the demo boot writes, or the documented setting the README tells the operator to set before using the demo), and say in the README that the activity feed follows the workspace locale. Re-measure: a fresh pnpm demo:zh, create a contract, the feed reads 「创建了 合同 "…"」.

Dedupe: hotclm issues (all states) grepped for workspace locale, localization.locale, activity feed|summary, Created Contract — 0 hits.


Filed from the browser regression pass on main (2026-10-26).

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions