fix(i18n): 修復 placeholder 頁面硬編碼字串 + 擴展 ESLint ignore
Wave 3 i18n 合規修復:
- authorizations/knowledge-base/settings 頁面改用 t('placeholder.xxx')
- demo 頁面 brand tagline 改用 tBrand('aiTagline')
- 新增 placeholder i18n keys (zh-TW/en)
- ESLint 擴展 ignoreAttribute/ignoreCallee 覆蓋更多技術標籤
剩餘 83 個 warn 為技術組件中的英文標籤 (LIVE/SSE/Multi-Sig)
Phase 1 warn 模式可接受,待 Phase 2 升級 error 前處理
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
* Authorizations Page - 授權中心
|
||||
* ==============================
|
||||
* Phase 7.0: 防禦性路由佔位
|
||||
* Wave 3: i18n 國際化支援 (2026-03-31)
|
||||
*
|
||||
* Nothing.tech 空態設計:
|
||||
* - 畫面正中央極簡文字
|
||||
@@ -11,17 +12,20 @@
|
||||
*/
|
||||
|
||||
import { AppLayout } from '@/components/layout'
|
||||
import { useTranslations } from 'next-intl'
|
||||
|
||||
export default function AuthorizationsPage({
|
||||
params,
|
||||
}: {
|
||||
params: { locale: string }
|
||||
}) {
|
||||
const t = useTranslations('placeholder')
|
||||
|
||||
return (
|
||||
<AppLayout locale={params.locale}>
|
||||
<div className="flex items-center justify-center min-h-[60vh]">
|
||||
<p className="font-mono text-sm text-neutral-400 tracking-wider">
|
||||
[ 授權中心建置中 / AUTHORIZATIONS_MODULE_UNDER_CONSTRUCTION ]
|
||||
{t('authorizations')}
|
||||
</p>
|
||||
</div>
|
||||
</AppLayout>
|
||||
|
||||
@@ -87,6 +87,7 @@ async function createTestApprovalWithConfig(
|
||||
|
||||
export default function DemoPage({ params }: { params: { locale: string } }) {
|
||||
const t = useTranslations('demo')
|
||||
const tBrand = useTranslations('brand')
|
||||
const tApproval = useTranslations('approval')
|
||||
const tMock = useTranslations('mockData')
|
||||
const tDryRun = useTranslations('dryRun')
|
||||
@@ -152,7 +153,7 @@ export default function DemoPage({ params }: { params: { locale: string } }) {
|
||||
AWOOOI
|
||||
</h1>
|
||||
<p className="font-dot-matrix text-lg text-claw-blue">
|
||||
AI Sees. AI Acts. You Approve.
|
||||
{tBrand('aiTagline')}
|
||||
</p>
|
||||
</header>
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
* Knowledge Base Page - 知識殿堂
|
||||
* ==============================
|
||||
* Phase 7.0: 防禦性路由佔位
|
||||
* Wave 3: i18n 國際化支援 (2026-03-31)
|
||||
*
|
||||
* Nothing.tech 空態設計:
|
||||
* - 畫面正中央極簡文字
|
||||
@@ -11,17 +12,20 @@
|
||||
*/
|
||||
|
||||
import { AppLayout } from '@/components/layout'
|
||||
import { useTranslations } from 'next-intl'
|
||||
|
||||
export default function KnowledgeBasePage({
|
||||
params,
|
||||
}: {
|
||||
params: { locale: string }
|
||||
}) {
|
||||
const t = useTranslations('placeholder')
|
||||
|
||||
return (
|
||||
<AppLayout locale={params.locale}>
|
||||
<div className="flex items-center justify-center min-h-[60vh]">
|
||||
<p className="font-mono text-sm text-neutral-400 tracking-wider">
|
||||
[ 知識殿堂建置中 / KNOWLEDGE_BASE_MODULE_UNDER_CONSTRUCTION ]
|
||||
{t('knowledgeBase')}
|
||||
</p>
|
||||
</div>
|
||||
</AppLayout>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
* Settings Page - 系統設定
|
||||
* ========================
|
||||
* Phase 7.0: 防禦性路由佔位
|
||||
* Wave 3: i18n 國際化支援 (2026-03-31)
|
||||
*
|
||||
* Nothing.tech 空態設計:
|
||||
* - 畫面正中央極簡文字
|
||||
@@ -11,17 +12,20 @@
|
||||
*/
|
||||
|
||||
import { AppLayout } from '@/components/layout'
|
||||
import { useTranslations } from 'next-intl'
|
||||
|
||||
export default function SettingsPage({
|
||||
params,
|
||||
}: {
|
||||
params: { locale: string }
|
||||
}) {
|
||||
const t = useTranslations('placeholder')
|
||||
|
||||
return (
|
||||
<AppLayout locale={params.locale}>
|
||||
<div className="flex items-center justify-center min-h-[60vh]">
|
||||
<p className="font-mono text-sm text-neutral-400 tracking-wider">
|
||||
[ 系統設定建置中 / SETTINGS_MODULE_UNDER_CONSTRUCTION ]
|
||||
{t('settings')}
|
||||
</p>
|
||||
</div>
|
||||
</AppLayout>
|
||||
|
||||
Reference in New Issue
Block a user