skills/vercel/shop/enable-i18n/Gen Agent Trust Hub

enable-i18n

Pass

Audited by Gen Agent Trust Hub on Jul 28, 2026

Risk Level: SAFE
Full Analysis
  • Application Routing and Middleware: The skill involves setting up a routing layer that introduces locale prefixes into URLs. It uses Next.js middleware to handle the redirection of unprefixed paths to their localized equivalents, which is a standard approach for internationalized applications.
  • Input Validation: The utility provided for retrieving the current locale includes a validation step that checks the URL segment against a defined list of supported locales. This ensures that only valid, configured locales are processed by the application.
  • Framework Compatibility: The instructions include specific guidance for Next.js 16's cache components, such as updating prerendering samples and avoiding specific Link components that could interfere with static site generation. This demonstrates an awareness of framework-specific security and performance constraints.
  • SEO and Sitemap Configuration: The skill provides logic for generating correct canonical URLs and hreflang alternates, as well as a localized sitemap. This follows established best practices for multi-language search engine optimization.
Audit Metadata
Risk Level
SAFE
Analyzed
Jul 28, 2026, 01:59 AM
Security Audit — agent-trust-hub — enable-i18n