Skip to content

fix(marketing): one wording for Email Opt Out and its enrollment refusal at both doors (#2774) - #2777

Merged
sunhaolin merged 3 commits into
mainfrom
claude/elastic-bhabha-2cbd43
Nov 25, 2026
Merged

sunhaolin merged 3 commits into
mainfrom
claude/elastic-bhabha-2cbd43

Conversation

@sunhaolin

@sunhaolin sunhaolin commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #2774

What was wrong

One rule, "a person who opted out of email is not enrolled in a campaign", read differently depending on where the user met it. Under zh-CN on 6.6.0:

Where Before
Lead field label 拒收邮件
Contact field label 拒绝邮件
Campaign member New (hook campaign_member_enrollment_gate), lead 张伟已拒收邮件,因此这个线索没有加入营销活动。
Same hook, contact …已拒绝邮件,因此这个联系人没有加入营销活动。
Add to Campaign (flows campaign_lead_member_enroll / campaign_contact_member_enroll) 张伟 已退订邮件,因此该线索没有被加入营销活动。
Enroll Members result 因退订邮件或没有邮箱地址而跳过 N 人

The English sources of the two doors are already the same sentence; only the translated rows had drifted. ja-JP and es-ES had the same split between the hook rows and the flow rows.

The fix

Translations, docs and tests only. No flow, hook or object definition changes, and no English pack or source string changes (one stale sentence is removed from an English docs page, see Docs).

Term. 拒收邮件 is the one zh-CN name of the field. I found no glossary entry or earlier ruling that names a term, so this follows the issue's recommendation; it is also the label the lead already carried. 已退订 stays, for the campaign-member status only.

zh-CN.

  • crm_contact.email_opt_out label: 拒绝邮件 → 拒收邮件.
  • One refusal sentence at both doors: {name}已拒收邮件,因此这个线索没有加入营销活动。 (and …这个联系人…). The flow rows adopt the hook rows' shape (no space after the name, 这个, 没有加入) because test/person-name-order.test.ts already pins that sentence for the hook.
  • Enroll Members result and its refused variant: 因拒收邮件或没有邮箱地址而跳过.

ja-JP. The flow rows take the hook rows' wording: {name}はメール配信停止を選んでいるため、このリードはキャンペーンに追加されませんでした。, with no space after the name.

es-ES. The flow rows take the hook rows' wording: {name} se ha excluido de los correos, por lo que el prospecto no se añadió a la campaña.; the two result sentences say se han excluido de los correos instead of se dieron de baja del correo.

The unnamed contact. In all three packs the hook's contact reason (a contact with no name to show) now equals what the flow renders with its default: name, as the English sources do ("This contact has opted out of email, so the contact was not added to the campaign."). Before, the hook row dropped the second "the contact". crm_contact.last_name is required, so this row is rarely reached.

Docs. src/marketing/docs/crm_marketing_automation.zh.md and crm_marketing_campaigns.zh.md no longer explain that the contact's field has another name, and say 拒收邮件 where they describe this rule. Seven content/docs pages (zh-Hans and zh-Hant each) are brought in line: sales/contacts, guides/email-and-calendar, reference/faq, marketing/campaign-members, marketing/campaigns, administration/automation, reference/security-and-compliance. The Campaign Members page also said of the hook's refusal "That message is shown in English in every language for now."; that has not been true since #2507 translated the hook refusals, so the sentence is removed from the English, zh-Hans and zh-Hant pages. The next paragraph's "Unlike the two rules above, this message is translated" now reads "Like the two rules above", for the same reason.

Left as they are, on purpose. (start)/whats-new.* (a past release note, describing what that release said); mentions of unsubscribing as a general idea rather than this field (e.g. "两个退订标志", the compliance checklist's "退订" item); every mention of the member status 已退订; docs/feature-inventory.md (internal).

Tests

  • test/campaign-member-direct-create-gates.test.ts, new block "an opted-out person is refused in one sentence per locale, whichever door refused (营销:同一个「拒收邮件」规则在简体中文里有三种说法(拒收邮件 / 拒绝邮件 / 退订邮件),两个入口的拒绝句不一致 #2774)". For zh-CN, ja-JP and es-ES it reads the pack and requires the flow row, with the name it interpolates swapped for the hook's param, to be the hook row: for a lead, a named contact and an unnamed contact. It also requires one email_opt_out label on lead and contact per locale, and, for zh-CN, that all seven sentences about the rule use the field's label and none says 退订, while the member status still reads 已退订. The existing block compared the doors in English only, which is how the packs drifted.
  • test/campaign-enrollment-gates.test.ts: the zh-CN Add to Campaign refusal is now pinned as the whole sentence (it pinned 张伟 已退订邮件).

pnpm verify on this branch: exit 0, 332 test files passed, 6396 tests passed, 58 skipped.

Not verified

Not read in a browser: the sentences are checked from the packs and over the booted app's REST and action doors in the tests, not on screen.

Seen on the way, not changed

The "campaign is not open for enrollment" refusal has the same kind of split between the two doors in zh-CN and ja-JP (es-ES matches). zh-CN hook: {{campaign}}未开放报名,或已不存在:只有“规划中”或“进行中”的营销活动可以加入成员。没有人被加入。; zh-CN flow: … 不在可加入成员的状态,或已不存在:只有处于「规划中」或「进行中」的营销活动可以加入成员。没有任何人被加入。. It is outside #2774 and is left for its own issue.

Independent review

A fresh read-only subagent that had not read my conclusion reviewed the diff. It accepted the class reviewer (text and translations; no behaviour, permission or data change). Its conclusion, verbatim:

  1. 改了什么:联系人的「拒绝邮件」改为「拒收邮件」;「已拒收邮件者不加入营销活动」的拒绝句在中、日、西三种语言的两个入口统一为一句,手册、文档、测试同步,判断逻辑与数据不变。
  2. 为什么、谁提的:issue 营销:同一个「拒收邮件」规则在简体中文里有三种说法(拒收邮件 / 拒绝邮件 / 退订邮件),两个入口的拒绝句不一致 #2774(sunhaolin 提出,p3)指出同一条规则在中文里有三种说法;日、西语也有同样的分裂。
  3. 最坏情况与可否撤销:最坏是某句译文或文档用词不当或前后不一(现有文档 6 处残留旧词、changeset 末句失实),不影响权限、数据和拦截结果;还原提交即可完全撤销。
  4. 未验证:完整 pnpm verify;浏览器中的实际渲染;钩子入口在三种语言下的 HTTP 端到端返回(只验证了 zh-CN 流程入口和包内行相等);日、西语译文未经母语者审读。

What happened after the review:

  • The leftovers named in line 3 are fixed in this commit: 拒绝邮件 on the two sales/contacts pages, four half-changed sentences on the two marketing/campaign-members pages, the stale "shown in English" sentence (three languages), and the changeset's last sentence, which now says what the docs pages do. The reviewer did not re-read these fixes.
  • pnpm verify was run in full after those fixes (result above), which closes the first item of line 4. The other three items of line 4 stand: not read in a browser, the hook door not exercised over HTTP in ja-JP and es-ES, and the ja-JP and es-ES sentences not read by a native speaker (the flow rows take wording the hook rows already shipped).
  • Two findings left as they are: the tests pin literal zh-CN wording (the issue asks for exactly that parity to be held), and the unnamed-contact sentence repeats its subject, as the English source does.

Metadata-impact: reviewer

…sal at both doors (#2774)

The rule "a person who opted out of email is not enrolled in a campaign"
read three ways in zh-CN: the lead's field was 拒收邮件 and the contact's
拒绝邮件, the Campaign Members panel's New answered "已拒收邮件" while Add
to Campaign answered "已退订邮件", and the Enroll Members result counted
people skipped for "退订邮件". ja-JP and es-ES had the same split between
the hook rows and the flow rows.

The field is now 拒收邮件 on both objects, and in each of zh-CN, ja-JP and
es-ES the flow rows take the hook rows' sentence, for a lead, a named
contact and an unnamed one. 已退订 stays the campaign member's status only.
Translations, docs and tests only: no flow, hook or object definition and
no English string changes.

The in-app marketing manual and the zh-Hans / zh-Hant docs pages follow.
The Campaign Members page no longer says the refusal is shown in English
in every language; it has been translated since #2507.

The tests read each pack and require the flow row, with the name it
interpolates swapped for the hook's param, to be the hook row, so the two
doors cannot drift apart again.

Fixes #2774
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
hotcrm Ignored Ignored Nov 25, 2026 1:59am UTC

Request Review

@sunhaolin

Copy link
Copy Markdown
Collaborator Author

Seat record · 独立评审 · head 3fd63d38 · 2026-11-25

独立评审(只读子代理,未参与改动)结论:通过(有 nit),建议顺手修第 1 条。Metadata-impact 同意 reviewer:只改译文行与一个字段的翻译标签,API 名、hook 代码、拒绝条件不变。

  • 改了什么:zh-CN 联系人字段标签「拒绝邮件」→「拒收邮件」,与线索一致;「已拒收邮件的人不加入营销活动」的拒绝在 hook 与「加入营销活动」两个入口、zh-CN / ja-JP / es-ES 统一为 hook 那一句,「批量加入成员」结果句同步;站点文档 14 页(en / zh-Hans / zh-Hant)、应用内手册 2 页与测试同步。
  • 为什么改、谁提的:营销:同一个「拒收邮件」规则在简体中文里有三种说法(拒收邮件 / 拒绝邮件 / 退订邮件),两个入口的拒绝句不一致 #2774(本地 UI 测试发现,p3):同一条规则在中文里有三种说法。
  • 最坏情况与能否回退:某句译文或文档读着不顺;不影响权限、数据与拦截结果;revert 即可。
  • 评审没有验证的:浏览器实际渲染;ja-JP / es-ES 的 hook 入口未走 HTTP 端到端;日文、西文未经母语者审读。

Findings

  1. content/docs/(product)/marketing/campaign-members.mdx:22、.zh-Hans.mdx:22、.zh-Hant.mdx:24(低):仍留着 "Unlike the two rules above, this message is translated"。本 PR 删了前一段「以英文显示」,这句对比随之变错——上面两条规则的消息自 fix(o2c, marketing): payment and campaign refusals answer in the caller's language (part of #2496) #2507 起也已翻译。句子早于本 PR,矛盾由本 PR 只删一半造成。
  2. test/campaign-member-direct-create-gates.test.ts:168(nit,本 PR):replace(NAME, fallback!) 为字符串替换,默认名含 $ 时会被当替换模式;fix(marketing): refuse a campaign that is not open in one sentence per locale at every door (#2778) #2779 同类写法已改函数替换,宜一致。
  3. src/marketing/translations/zh-CN.ts:165、ja-JP.ts:165(nit):无姓名联系人那句主语重复,照英文源句译,作者已说明。

其他:平台语言包无 email_opt_out 相关词条,「拒收邮件」取自线索已有标签,不算新造;残留「退订」均指成员状态或泛指。

与 #2779:同改四个文件,以 7246b8b6 为基三方合并无冲突,措辞一致。建议先合本 PR,#2779 随后由合并队列重跑检查即可。

@sunhaolin
sunhaolin marked this pull request as ready for review November 25, 2026 01:34
@sunhaolin
sunhaolin added this pull request to the merge queue Nov 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 25, 2026
…claude/elastic-bhabha-2cbd43

# Conflicts:
#	content/docs/(product)/marketing/campaign-members.mdx
#	content/docs/(product)/marketing/campaign-members.zh-Hans.mdx
#	content/docs/(product)/marketing/campaign-members.zh-Hant.mdx
…two rules before it (#2774)

The Campaign Members page said the one-membership refusal is translated
"unlike the two rules above". Those two refusals (a closed campaign, a
person who opted out of email) have been translated since #2507, so the
sentence now says "like" them, in English, zh-Hans and zh-Hant.
@sunhaolin
sunhaolin added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit af7025c Nov 25, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd CI plumbing and the verification pipeline documentation Improvements or additions to documentation metadata Declarative metadata — schema, security posture, UI surfaces

Projects

None yet

1 participant