用户本次明确要求使用 sloptrim 优化英语表单。当前分支为 feat/blog-targeted-multilingual-copy,HEAD 为 35cfe22565da6cea8248d92401412679e5919ed5。此前撤回的营销改写仍保持撤回状态,本次未提交、推送或部署。
本次只修改 37 个英文文案条目:31 个登录/账户/工单/下单表单提示,6 个签证表单字段标题和填写说明。字段、必填规则、枚举、默认值、提交数据、接口、鉴权与支付逻辑均未改动。另外六种语言保持本次开始时的内容。服务名称、服务描述、条款、退款条件、预约条件与既有承诺均未改动。
读取了 sloptrim 0.9.4 的规则、检测脚本、对应措辞参考和使用边界;工具仅下载到临时目录,没有安装全局插件。先运行检测再人工检查,用局部修正解决生硬直译、缺少冠词、重复词和模糊动作。没有为追求检测结果进行整段重写。修改项总词数由 183 变为 189,日期格式和现有业务条件保留。
| 来源 / 键 | 原文 | 当前英文 |
|---|---|---|
| base / auth.login_btn | Login | Log in |
| base / auth.auto_register | Quick Start | Create account |
| base / auth.auto_reg_desc | No password required. The system will create a secure account for you. Please bind email later to prevent data loss. | No password required. The system will create a secure account for you. Add your email later to prevent data loss. |
| base / auth.auto_reg_btn_action | Get Started Now | Create account |
| base / forgot_password.step1_desc | Enter your registered email address, and we will send you a verification code to reset your password. | Enter your registered email address to receive a verification code and reset your password. |
| base / forgot_password.new_password_placeholder | Set new password | Enter your new password |
| base / forgot_password.enter_email_alert | Please enter email | Enter your email address. |
| base / forgot_password.enter_code_alert | Please enter code | Enter your verification code. |
| base / forgot_password.enter_password_alert | Please enter new password | Enter your new password. |
| base / forgot_password.reset_success | Password reset successfully! Please login with new password. | Password reset successfully. Log in with your new password. |
| base / bind_email.title_step1 | Bind Email | Add email |
| base / bind_email.desc_step1 | To ensure account security and receive order notifications, please bind your email address. | Add your email address for account security and order notifications. |
| base / bind_email.resend_suffix | s resend | s to resend |
| base / bind_email.confirm_btn | Confirm Bind | Verify |
| base / bind_email.alert_input_email | Please enter email | Enter your email address. |
| base / bind_email.alert_input_code | Please enter code | Enter your verification code. |
| base / bind_email.alert_code_length | Please enter 6-digit code | Enter the 6-digit code. |
| base / bind_email.success | Email bound successfully! | Email added to your account. |
| base / bind_email.failed | Bind failed | Could not add email |
| base / settings.get_code | Get Code | Send code |
| base / settings.new_password_placeholder | Enter new password | Enter your new password |
| base / settings.confirm_password_placeholder | Confirm new password | Re-enter your new password |
| base / settings.enter_code | Please enter verification code | Enter your verification code. |
| base / settings.enter_password | Please enter new password | Enter your new password. |
| base / settings.password_changed_success | Password changed successfully! Please login again. | Password changed successfully. Log in again. |
| base / profile.email_readonly_label | Bound Email (Read-only) | Email (read-only) |
| base / profile.nickname_placeholder_form | Set your display name... | Enter your display name |
| base / ticket.inquiry_type | Inquiry & Appeal Type | Request type |
| base / ticket.desc_placeholder | Please describe your issue in detail... | Describe your issue in detail. |
| base / order.no_extra_info_needed | No extra information needed, please proceed. | No extra information is needed. You can proceed. |
| base / order.confirm_submit_msg | Please verify your information. It cannot be easily changed after submission. | Check your information. It is difficult to change after submission. |
| catalog / Birthday | Birthday | Date of birth |
| catalog / Birthday in YYYY-MM-DD format | Birthday in YYYY-MM-DD format | Date of birth in YYYY-MM-DD format |
| catalog / Cover Letter Id | Cover Letter Id | Cover letter ID |
| catalog / Application form reference number, you need to fill out the application form online form first. | Application form reference number, you need to fill out the application form online form first. | Application form reference number. Complete the online application form first. |
| catalog / Visa Reason | Visa Reason | Reason for applying |
| catalog / Apply greece visa reason | Apply greece visa reason | Reason for applying for a Greek visa |
docs/editorial/translations/README.mddocs/editorial/translations/service-and-schema-copy.jsonscripts/check-i18n.mjsscripts/check-localization-scope.mjssrc/lib/i18n/catalog-messages.jsonsrc/lib/i18n/locales/en.tsdocs/editorial/english-form-copy.jsondocs/editorial/english-form-copy.md英文原文范围检查仅允许上表中的精确例外,其余英/中文原文和业务处理保护继续生效。审阅清单是测试用记录,不进入应用运行逻辑。
| 命令 | 退出码 |
|---|---|
node scripts/check-i18n.mjs |
0 |
LOCALIZATION_SCOPE_RECEIPT=output/playwright/english-form-copy/business-scope-check.json node scripts/check-localization-scope.mjs |
0 |
node scripts/check-blog.mjs |
0 |
node scripts/check-blog-nav.cjs |
0 |
node scripts/check-blog-style.mjs |
0 |
node_modules/.bin/tsc --noEmit --incremental false |
0 |
python3 /tmp/strata-sloptrim-skill/scripts/detect.py output/playwright/english-form-copy/after-edited-copy.txt |
0 |
python3 /tmp/strata-sloptrim-skill/scripts/detect.py --clean output/playwright/english-form-copy/after-edited-copy.txt |
0 |
/tmp/strata-blog-qa-venv/bin/python output/playwright/english-form-copy/verify-browser.py(下述隔离环境) |
0 |
/tmp/strata-blog-qa-venv/bin/python output/playwright/english-form-copy/verify-builds.py |
0 |
浏览器环境:BLOG_TEST_URL=http://127.0.0.1:3000,APP_SCREENSHOT_DIR=output/playwright/english-form-copy/browser,CHROMIUM_PATH 指向本机已安装的 Chrome for Testing 147.0.7727.15。真实 Chromium 共完成 7 次页面访问、17 条页面/表单状态检查记录。普通页面检查宽度 320、390、768、1024、1440;弹窗与额外状态检查 320、390、1440。JS 页面错误、非预期控制台错误、横向溢出和无名称控件均为 0。
检查英文 /login 的登录、注册说明、密码找回两步;/dashboard/settings 的资料编辑、密码修改及键盘显示密码;/dashboard 的工单与邮箱验证两步、五位验证码错误提示;/create-order/34、/create-order/35、/create-order/36 的希腊/荷兰/丹麦字段。荷兰表单使用虚构输入打开确认窗口,核对修改后的确认提示后取消;未创建订单。
账户状态是隔离样本,公开产品/字段是仓库保存的只读样本;所有 API 被拦截。仅两个发送验证码的 POST 使用虚构响应以展示第二步,没有发送邮件。其他请求为 GET。没有把这些检查描述为真实登录、密码重置、资料保存、工单提交、付款、预约或退款成功。
构建使用现有临时副本,NEXT_PUBLIC_API_URL=http://127.0.0.1:9,分别显式传入 BLOG_INDEXING_ENABLED=false 和 true。两次 npm run build 和两次 node scripts/check-blog-http.mjs 均退出 0;检查含 28 个博客页面、公开页面和私人页面,默认 sitemap 为 0 个 URL,启用索引时为 84 个 URL(28 个博客 + 56 个公开页面)。每次确认临时副本 src/ 与当前源码一致,并关闭测试服务。生产配置未修改,本地 3000 预览继续运行。
全项目 lint 本次未运行,不声称已修复先前的 next/core-web-vitals 配置问题。本次无组件代码改动;字典和脚本经类型/实际执行检查。回执位于 output/playwright/english-form-copy/:command-receipts.json、business-scope-check.json、change-scope.json、browser/browser-results.json、builds/build-http-receipts.json。
output/playwright/english-form-copy/browser/en-forgot-password-mobile.png:密码找回说明。output/playwright/english-form-copy/browser/en-verify-email-mobile.png:收短后的 Verify 按钮。output/playwright/english-form-copy/browser/en-greece-reason-mobile.png:希腊申请原因。output/playwright/english-form-copy/browser/en-denmark-reference-mobile.png:丹麦申请编号填写说明。output/playwright/english-form-copy/browser/en-order-confirmation-mobile.png:虚构输入下的确认提示。output/playwright/english-form-copy/browser/en-profile-mobile.png:个人资料表单。人工看过密码找回、邮箱验证与丹麦字段截图。仍观察到移动端较长填写说明旁的 Note 标签会折行,属于当前样式表现;本次只改英文文案,没有变动样式。本机原生日期控件截图显示“年/月/日”,应用 html lang 为 en;原生控件的界面语言未单独验收,日期控件类型与提交格式保持原样。截图仅证明本机渲染结果,不代表图片加载性能、母语编辑独立复审或真实业务流程已验证。