Repository navigation
fix(marketing): one wording for Email Opt Out and its enrollment refusal at both doors (#2774) - #2777
Merged
Merged
Conversation
…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
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
This was referenced Nov 24, 2026
Collaborator
Author
|
Seat record · 独立评审 · head 独立评审(只读子代理,未参与改动)结论:通过(有 nit),建议顺手修第 1 条。Metadata-impact 同意
Findings
其他:平台语言包无 与 #2779:同改四个文件,以 |
sunhaolin
marked this pull request as ready for review
November 25, 2026 01:34
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
拒收邮件拒绝邮件campaign_member_enrollment_gate), lead张伟已拒收邮件,因此这个线索没有加入营销活动。…已拒绝邮件,因此这个联系人没有加入营销活动。campaign_lead_member_enroll/campaign_contact_member_enroll)张伟 已退订邮件,因此该线索没有被加入营销活动。因退订邮件或没有邮箱地址而跳过 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_outlabel:拒绝邮件→拒收邮件.{name}已拒收邮件,因此这个线索没有加入营销活动。(and…这个联系人…). The flow rows adopt the hook rows' shape (no space after the name,这个,没有加入) becausetest/person-name-order.test.tsalready pins that sentence for the hook.因拒收邮件或没有邮箱地址而跳过.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 sayse han excluido de los correosinstead ofse dieron de baja del correo.The unnamed contact. In all three packs the hook's
contactreason (a contact with no name to show) now equals what the flow renders with itsdefault: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_nameis required, so this row is rarely reached.Docs.
src/marketing/docs/crm_marketing_automation.zh.mdandcrm_marketing_campaigns.zh.mdno longer explain that the contact's field has another name, and say拒收邮件where they describe this rule. Sevencontent/docspages (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 oneemail_opt_outlabel 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 verifyon 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:pnpm verify;浏览器中的实际渲染;钩子入口在三种语言下的 HTTP 端到端返回(只验证了 zh-CN 流程入口和包内行相等);日、西语译文未经母语者审读。What happened after the review:
拒绝邮件on the twosales/contactspages, four half-changed sentences on the twomarketing/campaign-memberspages, 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 verifywas 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).Metadata-impact: reviewer