Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
This template shows how to redirect users based on i18n configuration.

Astro landing page starter with gradient background, responsive hamburger/dropdown menu, and switchable floating/fullscreen headers.
i18n in Edge Middleware is a Next.js template from Vercel that demonstrates how to use Edge Middleware to redirect users to localized content based on an i18n configuration.
This template is an example project from the vercel/examples repository that shows how to perform internationalization (i18n) redirects at the edge using Next.js middleware. It takes an i18n configuration with supported locales and a default locale as input, and outputs HTTP redirects that send visitors to the language-appropriate path. The template runs on Next.js and is designed for deployment on Vercel, with a one-click deploy option and a live demo available at https://middleware-i18n.vercel.app.
pnpm create next-app --example https://github.com/vercel/examples/tree/main/edge-middleware/i18n.