You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
改动
复用仓库既有
tr()/trText()文案字典(不引入 i18n 依赖),把五个页面及其弹窗、抽屉、toast、空态的中文全部接入:pages/credentials/*(表头/单元格/动作/筛选/组头/抽屉/批量 toast)、9 个凭证弹窗(新增/批量导入/限额/标签/权重/网页 Cookie/账号密码/修改密码/时间线)、PoolOverview、lib/credentialImport.ts(粘贴解析错误)。ROLE_LABELS/ROLE_OPTIONS渲染点补tr。UpstreamStatusPage全页(档位、组件明细、事故、概况、空态)。AlertsPage全页(表头、级别、推送状态、空态、说明)。SettingsPage全页;后端下发的setting.label/description、task.name/description、分组成员名在前端渲染时过词典(中文是词典 msgid,中文模式逐字不变)。STATE_LABEL、TASK_REPORT_LABEL、ALERT_RULE_LABEL、USAGE_ERROR_LABEL、UPSTREAM_LEVEL_LABEL、CREDIT_SOURCE_LABEL、PROVIDER_LABEL、侧栏角标全部改为「中文源串 + 渲染点tr」,组件内不再散落字符串。formatDuration/formatAgo/formatNumber/formatCompact/formatTime与额度日期改用界面语言的 locale,英文界面不再出现「分钟/天」与中文月份。Accept-Language本地化 + 前端按码兜底,本轮不直出中文原文。新增护栏:
noHardcodedZh.test.ts文件清单扩到本轮 24 个文件(源码级扫描,剥掉注释与tr()实参后不允许出现 CJK);新增pagesEnglish.test.tsx渲染级回归(告警页表头/级别、设置页标签与来源徽标、上游页标题、状态/时长/角标取值)。验证