Skip to content

chore(i18n): delete duplicate middleware + align validate script#28

Open
abdout wants to merge 1 commit into
mainfrom
chore/i18n-cleanup-middleware
Open

chore(i18n): delete duplicate middleware + align validate script#28
abdout wants to merge 1 commit into
mainfrom
chore/i18n-cleanup-middleware

Conversation

@abdout
Copy link
Copy Markdown
Contributor

@abdout abdout commented Apr 25, 2026

Summary

  • Delete `src/components/internationalization/middleware.ts` — dead duplicate of `proxy.ts` from the Next 15 → 16 migration (no callers).
  • Update `validate-i18n.js` to check for `proxy.ts` (Next 16) instead of `middleware.ts`. Validation now passes cleanly on current code.

Changes

  • Removed: `src/components/internationalization/middleware.ts`
  • Updated: `validate-i18n.js` — drop V2.0 Middleware check, swap Root Middleware → Root Proxy, content validation reads `proxy.ts`.

Test plan

  • `node validate-i18n.js` exits 0 with all checks passing
  • `grep -r 'internationalization/middleware' src/` returns nothing
  • `pnpm build` still succeeds

Closes #27

🤖 Generated with Claude Code

src/components/internationalization/middleware.ts was a dead
duplicate of the root proxy.ts (no callers, leftover from the Next 15
→ Next 16 migration). validate-i18n.js was still expecting
middleware.ts at the root, so it failed on the post-migration code.

Drops the V2.0 Middleware check, replaces Root Middleware with Root
Proxy (Next 16), updates content validation to verify proxy.ts
imports config and exports a named proxy() function.

Closes #27

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marketing Ready Ready Preview, Comment Apr 25, 2026 0:30am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(i18n): delete duplicate middleware + align validate-i18n.js with proxy.ts

1 participant