Skip to content

feat(portal): i18n 接线 2/2 — #269 门户页 (role/community/admin/sale)#308

Merged
jhfnetboy merged 1 commit into
masterfrom
feat/portal-i18n-wire-pages
Jun 14, 2026
Merged

feat(portal): i18n 接线 2/2 — #269 门户页 (role/community/admin/sale)#308
jhfnetboy merged 1 commit into
masterfrom
feat/portal-i18n-wire-pages

Conversation

@jhfnetboy

Copy link
Copy Markdown
Member

顶替 #307 —— 原 #307 在父 PR #306 合并删分支时被 GitHub 连锁自动关闭(stacked PR 的 base 分支被删),内容/提交完全相同且已 rebase 到 master。

目标

i18n 文案接线 2/2:把 #269 的 4 个门户 dashboard 页接入 i18next。

改动

  • app/{role,community,admin,sale}/page.tsxuseTranslation
  • locales 新增 rolePage/communityPage/adminPage/salePage(en/zh 各 594 key 完全一致)

说明

…in/sale)

Wire the four management-portal dashboard pages to useTranslation.
locales: +rolePage/communityPage/adminPage/salePage namespaces
(594 keys total, en/zh in parity).

Verified: type-check 0, i18n:check pass (594 keys), lint clean, next build pass.
@jhfnetboy jhfnetboy requested a review from fanhousanbu as a code owner June 14, 2026 06:51
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@clestons clestons left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review: feat(portal): i18n 接线 2/2 — #269 门户页 (role/community/admin/sale)

Verdict: APPROVE — 2-round (pure i18n wiring). Content verified identical to the previously APPROVE'd #307; re-approval on the rebased/direct-to-master version.

Spot-checked against #307 findings

Same four portal pages (app/admin, app/community, app/role, app/sale), same useTranslation() + t() pattern, same adminPage.* / communityPage.* / rolePage.* / salePage.* locale key structure. All prior confirmed points hold:

  • useEffect error paths use t() as informational ✅
  • common.loading cross-section key reuse correct ✅
  • Interpolation variables ({{chainId}}, {{address}}, {{count}}, etc.) symmetric EN/ZH ✅
  • t("salePage.gtokenNotConfigured", { env: "GTOKEN_SALE_ADDRESS" }) env var interpolation ✅
  • Locale additions (+130 keys × 2 sides) parity confirmed by i18n:check CI guard ✅

No new findings introduced by the rebase. The useEffect Low suggestion from #307 (add t to dep array) still applies as a non-blocking follow-up.

@jhfnetboy jhfnetboy merged commit d4bae11 into master Jun 14, 2026
11 of 14 checks passed
@jhfnetboy jhfnetboy deleted the feat/portal-i18n-wire-pages branch June 14, 2026 07:57
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants