Skip to content

Blank template: full zh-CN bundle (company, contact, article, app) so a fresh scaffold lints clean in Chinese #38456

Backlog

Description

@objectstack-fleet

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

Filing gate: ② seat split. Source: #38372 point 2 ("translations" for the blank template), split out by seat repo:objectstack#5 on the dev's needs_decision report 7249578828 (PR #38435). #38372 ships the article object, view, menu entry and seed in the template with no translations; the Starter keeps its full en + zh-CN bundle.
Grading: area:package · Feature · p3 (no measured demand for zh-CN in a fresh scaffold; the template is English-first on main today) · reach: every project scaffolded by npm create objectstack · evidence: the measurements in 7249578828.

维护者速读

  • 做什么:让 npm create 的空白模板带完整中文标签(公司、联系人、知识文章、应用),新建项目在中文界面下不再显示英文。
  • 为什么单立:examples/app-starter and the blank template: a help-article object with a view, a menu entry and seed articles, identical in both #38372 要在下个发版前合并。只给文章加中文会让空白项目 os lint 报 48 条翻译缺失,打破零告警门禁,所以那张卡先不带翻译(与今天的模板一致),这半件移到这里。
  • 影响:要给脚手架加一条改写规则,并改一个 CLI 端到端对照测试;工作量中到大。
  • 要你做的:无。排队,不派发,等有需求再提。

What

Make the blank template (packages/create-objectstack/src/templates/blank/) fully bilingual: zh-CN labels for company, contact and article (labels, options, views, sections) and for the app, and declare zh-CN in its i18n block, so that a bare scaffold keeps zero os lint findings.

Known work (from 7249578828):

  1. The package-name translation key is the manifest id, which the scaffolder rewrites only in the config. packages/create-objectstack/src/index.ts needs a rewrite rule for it, or a missing-package finding stays.
  2. The [finding] fresh starters carry a latent field-no-consumers warning that the first os generate wakes (create-objectstack blank note.body; os init -t app item description / status) #21370 control in packages/cli/test/starter-field-consumers.e2e.test.ts strips the starter views, so every _views key becomes an unknown target. The control needs to account for that, without weakening os generate scaffolds fail the project's own gates: flow targets a nonexistent object, view is refused by os lint, action/app cannot target an existing object #21325.
  3. The on-ramp e2e tests read create-objectstack's built dist/templates; rebuild after rm -rf packages/create-objectstack/dist before reading them (OS_TEST_TIERS=nightly).

Acceptance

Not in scope: relaxing #21325 or #21370 (option C of 7249578828, refused).

Dedupe: blank template zh-CN 0 open · template translations 0 open.

Activity

  1. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Triage: lands in packages/create-objectstack/src/templates/blank/** (a full zh-CN bundle for company, contact, article and app) and packages/create-objectstack/src/index.ts, with a packages/cli e2e control · area:package → area:ux (i18n goes to area:ux even when the thing cannot be done; ux core ⑤) · domain:server · Feature · p3 → p2 (a UX-improving Feature from a maintainer topic defaults to p2) · pm:queue → needs-user-decision · size L. Rationale: this is the translations half of point 2 of the maintainer-directed #38372 (topic #38346). The seat chose on its own (routing 7249604628) to drop it from #38372 and queue it separately. Trimming a maintainer-directed card is on the human floor (卡的命运 · 砍半). The question for the maintainer: accept the split and keep this card for later, or keep the translations inside #38372 now. The article's zh-CN part waits on #38372 landing (PR #38435 is open). The company, contact and app parts could start at once.

    Recorded 2026-11-29T03:48Z.

  2. added
    domain:server
    needs-user-decision
    priority:p2
    and removed
    pm:queue
    on Nov 29, 2026
  3. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5mr5AivC4JTuX2FB6Q

    Decision analysis · 2026-11-29T05:07Z · #38456, whether the blank project template becomes fully bilingual, and whether the seat's split of that half out of #38372 stands. Written by the decision thread opened for seat repo:objectstack#5. ⛔ Not a claim and not a ruling: the maintainer rules.

    维护者速读

    • 问题:「模板加知识文章」那张卡原文写了空白模板也带中文标签。开发时发现只给文章加中文,新建项目一检查就报 48 条翻译缺失;座位就先不带翻译合并(和今天的模板一样是纯英文),把「空白模板全套中文」拆成了这张卡。拆不拆、这半件做不做,要你定。云端自动安装的基础模板应用一直是中英双语,不受影响。
    • 选项:A 认可拆分,空白模板保持单语,这张卡关掉;以后有人要中文起步,再按「建项目时选语言」立新卡。B 认可拆分,文章那张卡合并后接着做全套中文,两个以上 PR;代价是此后每个新建项目天生声明支持中文,之后每加一个对象都会被提示补中文,生成器的零告警保证也要一起改。C 不认可拆分,中文放回文章那张卡,那个 PR 要等 B 的全部工作,赶不上这次发版。
    • 推荐 A:项目声明支持哪些语言应该由建项目的人决定,模板不该替所有人声明中文;需要中文的项目用一条命令就能生成译文骨架。
    • 不定会怎样:文章那张卡照常合并不受影响;这张卡挂在待裁决里,新建项目的示例对象仍是英文,和今天一样。

    Background

    #38372 (p2, maintainer-directed, child of topic #38346) puts a help-article object, view, menu entry and seed into both the Starter app and the blank template that npm create objectstack scaffolds. Its point 2 lists "translations" for the template. The dev stopped with needs_decision (report 7249578828): a zh-CN bundle covering the article alone gives a fresh project 48 missing-translation findings and breaks the on-ramp's zero-findings tests. The seat ruled the dev's option A as a split (routing record 7249604628): the template ships with no translations, as on main today, and the bilingual half became this card (filed p3, pm:queue). Triage (7250274345) raised it to area:ux p2 and to needs-user-decision: trimming a maintainer-directed card is on the human floor. PR #38435 is open as a draft with the split applied; the release PR #38192 is open.

    The maintainer's words quoted on #38372 ask for the knowledge articles in both apps as one set of metadata. They do not mention translations; "translations" for the template is the filing seat's elaboration of point 2.

    Governing text

    Protocol statement: no option edits a protocol. B changes what every scaffolded project declares (i18n.supportedLocales) and adds a rewrite rule to the scaffolder.

    Premises, each with its re-check (read on main d89d3e23)

    1. The blank template declares no language and ships no bundle today. grep -rn -i -E "i18n|zh-CN|translations" packages/create-objectstack/src/templates/blank --include=*.ts --include=*.json prints nothing.
    2. The Starter app is bilingual and stays so. grep -n -A4 "i18n:" examples/app-starter/objectstack.config.ts shows supportedLocales: ['en', 'zh-CN'].
    3. The scaffolder has no language option. grep -n -E "\.option\(" packages/create-objectstack/src/index.ts lists template, skip-install and skip-skills.
    4. The generators write no translations. grep -n -i -c "translation" packages/cli/src/commands/generate.ts answers 1, a comment about something else. So in a project that declares zh-CN, every object os g object writes is missing its zh-CN entries.
    5. A project that wants a second language has a command for the skeleton: os i18n extract seeds a bundle from the inline labels (packages/cli/src/commands/i18n/extract.ts; the coverage header says so).
    6. The 48 findings and the two failing files are the dev's measurement (7249578828); option A's green 78/78, then 92/92 on the final head, is the dev's too (7250568565). B was not built or measured.

    The question

    Should every project created from the blank template start out declaring Chinese and carrying Chinese labels for its sample objects, or does the template stay single-language as it is today, with the article card's translations half dropped?

    Options, real cost, effort

    Option What is done What customers see Effort
    A: accept the split, keep the template single-language #38372 lands as it is. This card closes not planned with the ruling as its reason. If a builder asks for a Chinese start, a new card proposes a language choice at scaffold time. New projects show English labels on the three sample objects, as today. A builder who wants Chinese runs the extract command and translates, or writes Chinese labels directly. The Starter app installed in cloud workspaces stays bilingual. None.
    B: accept the split, build the bilingual template next After #38372 merges: zh-CN for company, contact, article and the app; the scaffolder's rewrite rule for the package name key; the #21370 control changed. Read from premise 4, not measured: every generator leg of the #21325 test then goes red, because a generated object has no zh-CN entries, so either the generators write placeholder translations or the test stops promising zero findings in a project that declares a second language. A Chinese builder's new project shows Chinese on the sample objects. Every new project, for every user in every country, declares Chinese: each object added later is reported as missing its Chinese labels until someone translates it or removes the declaration. domain:server · 2 or more PRs. The dev's estimate was M to L for the two items it listed; the generator consequence is on top and unsized. Reference size: PR #38435 is +797/−62 for the article in both apps. No landed precedent.
    C: undo the split The translations go back into #38372. PR #38435 waits for all of B's work. As B, and the help articles miss the release PR that #38372 was to land before. As B, on the critical path of #38372.

    Business meaning

    • A: the blank form comes in one language; whoever needs a second language ticks the box and gets the second column.
    • B: every blank form is printed with a Chinese column, and every clerk in every office is reminded to fill it in.
    • C: the same, and the form's new section does not ship this month.

    Four axes

    • Long-term fit. Which languages a project supports is the project owner's decision, and the platform already treats it that way: nothing is checked until the project declares a language. A template that declares Chinese for everyone turns that around. The mainstream scaffolders start single-language and add languages by choice (create-next-app, Rails, Salesforce DX project templates; from prior knowledge, not re-read). The end state that serves Chinese builders well is a language choice when the project is created, with the bundle generated for that choice; B is not a step toward it, because it hard-codes one second language. A leaves the template as the generators and the zero-findings promise assume it.
    • Real pull. None measured for a Chinese start in a fresh scaffold. The maintainer's direction on examples/app-starter and the blank template: a help-article object with a view, a menu entry and seed articles, identical in both #38372 is the articles in both apps; that lands whole under A. The app end users actually open first, the Starter, is bilingual already.
    • AI error surface. Under B an agent that adds an object to a new project gets a missing-translation finding every time. It either writes machine Chinese nobody reviews, or learns that findings in a fresh project are normal, which is what the zero-findings promise exists to prevent. Under A a fresh project stays at zero findings, and a project that declares a language gets findings that mean something.
    • No spread. A adds nothing. B adds a bundle to keep in step with three sample objects, a rewrite rule in the scaffolder, a changed test control and a generator question, for no asking user.

    os-decision-facets
    ① Long-term fit: A keeps "the project declares its languages" intact; B makes every scaffold declare zh-CN and adds a scaffolder rewrite rule and a changed control (grows special cases); the durable shape for a Chinese start is a language choice at scaffold time, which B does not approach.
    ② Real pull: zero measured demand for zh-CN in a fresh scaffold; the maintainer-directed part of #38372 (articles in both apps) is untouched by A; the Starter stays bilingual.
    ③ AI error surface: B makes every object an agent adds to a new project raise a missing-translation finding, teaching agents to ignore findings or to write unreviewed translations; A keeps a fresh project at zero findings.
    ④ No spread: A adds nothing; B adds a bundle, a rewrite rule, a test change and an open generator question with no asking user.
    Prior rulings read: template,translation,zh-cn,scaffold,bilingual → 11 hits; ADR-0022 Decision §5, ADR-0032 Decision §2, ADR-0032 Decision §3, ADR-0032 Decision §4, ADR-0032 Decision §5, ADR-0079 D1, ADR-0129 D3, ADR-0131 D13, ADR-0131 D3, ADR-0156 D3; thread: none; repo: objectstack-ai/objectstack
    Also read, by hand: #38372 and its eight comments (dev reports 7249578828 and 7250568565, routing record 7249604628), PR #38435's body, triage 7250274345. None of the named ADR decisions concerns a scaffold's languages; they match on a word only.

    Recommendation

    A. End state: a new project declares the languages its owner chose. Today that is none; later it can be a choice at scaffold time that writes the declaration and the bundle together. The template itself stays single-language, and the Starter stays the bilingual example. Zero pull, so the rule is not to spread.

    Not taken. B: it declares Chinese on behalf of every new project and collides with the zero-findings promise for generated objects, for a need nobody has voiced. C: the same work, placed on the critical path of a card the maintainer wanted in this release.

    This is reached from premises 1, 4 and 5 and the coverage rule, not carried over from the dev's or the seat's recommendation. They chose A for effort and gates; the reason here is who decides a project's languages.

    Self-check: ① alone picks A; ②③④ flip it: no.

    Confidence gaps:

    After the ruling

    Related: #38372 and PR #38435 (the article card), #38346 (topic), #21325 and #21370 (the on-ramp's zero-findings pins).

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:uxdomain:serverneeds-user-decisionpriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions