fix(i18n): 补齐记录详情审批按钮与弹窗的国际化文案#2791
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
记录详情页在当前用户为待审批人时,会注入 Approve / Reject 两个操作按钮
(RecordDetailView.tsx),文案取自 `t('approvals.*')` key。但这些 key 在所有
语言包中均不存在,i18n 回退到英文 defaultValue —— 于是中文界面里按钮及相关
弹窗显示成 "Approve" / "Reject" 等英文。
在全部 10 个内置语言包新增顶层 `approvals` 命名空间,补齐 6 个 key:
approve / reject / comment(意见输入框)/ rejectConfirm(驳回确认弹窗)/
approveSuccess / rejectSuccess(成功提示)。中文用词与状态阶段
"已批准/已驳回" 保持一致。
i18n 测试全绿(含各语言顶层 key 对齐校验),tsc 构建通过。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
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.
问题
记录详情页在当前用户是待审批人时,会注入 Approve / Reject 两个操作按钮(
RecordDetailView.tsx)。按钮及相关弹窗的文案取自t('approvals.*')key,但这些 key 在所有语言包里都不存在,i18n 回退到英文defaultValue—— 中文界面因此显示成英文 "Approve" / "Reject"。改动
在全部 10 个内置语言包(
packages/i18n/src/locales)新增顶层approvals命名空间,补齐 6 个 key:approverejectcommentrejectConfirmapproveSuccessrejectSuccess中文用词与状态阶段("02 已批准""03 已驳回")保持一致。
影响面
t('detail.*'),已正常国际化,未改动。验证
@object-ui/i18n测试全绿(89 passed),含 "all locales have the same top-level keys" 对齐校验。tsc构建通过。🤖 Generated with Claude Code