enable-i18n
Pass
Audited by Gen Agent Trust Hub on Oct 27, 2026
Risk Level: SAFE
Full Analysis
- Standard Dependency Management: The skill instructs the installation of next-intl using pnpm. This is a reputable and widely used library for handling i18n in Next.js applications.
- Secure Parameter Handling: The implementation includes a getLocale helper that validates locale strings against a known list of supported locales before proceeding, which is a recommended practice to prevent processing of unexpected or malicious inputs.
- Middleware Integration: The proxy.ts configuration correctly merges locale-aware routing with existing middleware logic, ensuring that sensitive API routes and internal Next.js paths remain unaffected by localization redirects.
- Safe Local Testing: The verification section utilizes curl commands to interact with the local development server (localhost). This is a standard and safe method for developers to confirm the correct behavior of routes and sitemaps.
Audit Metadata