--- createdAt: 2025-10-25 updatedAt: 2026-10-08 priority: 9 title: "Next.js 15 i18n - Complete guide to translate your app" description: "Set up Intlayer in Next.js 15 App Router: locale routing middleware, async params, Server and Client Components, localized metadata and sitemap." keywords: - Internationalization - Documentation - Intlayer - Next.js 15 - JavaScript - React slugs: - doc - environment - nextjs - 15 applicationTemplate: https://github.com/aymericzip/intlayer-next-15-template applicationShowcase: https://next-15-intlayer-template-xt83.vercel.app youtubeVideo: https://www.youtube.com/watch?v=e_PPG7PTqGU history: - version: 9.4.0 date: 2026-08-22 changes: "Update to Next.js >= 9.4.0 architecture" - version: 8.9.0 date: 2026-05-04 changes: "Update Solid useIntlayer API usage to direct property access" - version: 7.5.9 date: 2025-12-30 changes: "Add init command" - version: 7.0.6 date: 2025-11-01 changes: "Added mention of `x-default` in `alternates` object" - version: 7.0.0 date: 2025-10-25 changes: "Added mention of `withIntlayerSync()` function" - version: 6.2.0 date: 2025-10-09 changes: "Added docs for `useLocale` hook with `onLocaleChange` option" - version: 5.6.6 date: 2025-10-02 changes: "Added docs for `getLocale` function on server actions" - version: 5.6.2 date: 2025-09-23 changes: "Added docs for watch dictionaries changes on Turbopack" - version: 5.6.2 date: 2025-09-22 changes: "Added docs for `multipleMiddlewares` helper" - version: 5.6.0 date: 2025-07-06 changes: "Transform `withIntlayer()` function to a promise based function" - version: 5.5.10 date: 2025-06-29 changes: "Initial history" author: aymericzip --- # Translate your Next.js 15 website using Intlayer ## Table of Contents ## Why Intlayer over alternatives? Compared to main solutions like `next-intl` or `i18next`, Intlayer is a solution that comes with integrated optimizations such as: Intlayer is optimized to work with **Server Components** for efficient rendering and is fully compatible with [**Turbopack**](https://nextjs.org/docs/architecture/turbopack). It does not block static rendering and offers middleware as well as all the features needed for scaling internationalization (i18n). > Intlayer is compatible with Next.js 12, 13, 14, 15, and 16. If you are using the Next.js Pages Router, you can refer to this [guide](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_page_router.md). > Locale routing is useful for SEO, bundle size, and performance. If you don't need it, you can refer to this [guide](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_16.md). > For Next.js 12, 13, 14, and 15 with the App Router, refer to this [guide](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_14.md). - [Next.js Pages Router i18n: Complete Translation Guide](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_page_router.md) - [guide](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_16.md) - [Next.js 14 i18n - Complete guide to translate your app](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_14.md) Instead of loading massive JSON files into your pages, load only the necessary content. Intlayer helps **reduce your bundle and page sizes by up to 50%**. Scoping your application's content **facilitates maintenance** for large-scale applications. You can duplicate or delete a single feature folder without the mental burden of reviewing your entire content codebase. Additionally, Intlayer is **fully typed** to ensure your content's accuracy. Co-locating content **reduces the context needed** by Large Language Models (LLMs). Intlayer also comes with a suite of tools, such as a **CLI** to test for missing translations,**[LSP](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/lsp.md)**, **[MCP](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/mcp_server.md)**, and **[agent skills](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/agent_skills.md)**, to make the developer experience (DX) even smoother for AI agents. - [LSP](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/lsp.md) - [MCP](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/mcp_server.md) - [agent skills](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/agent_skills.md) Use automation to translate in your CI/CD pipeline using the LLM of your choice at the cost of your AI provider. Intlayer also offers a **compiler** to automate content extraction, as well as a [web platform](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_CMS.md) to help **translate in the background**. - [web platform](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_CMS.md) Connecting massive JSON files to components can lead to performance and reactivity issues. Intlayer optimizes your content loading at build time. More than just an i18n solution, Intlayer provides an **self-hosted [visual editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_visual_editor.md)** and a **[full CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_CMS.md)** to help you manage your multilingual content in **real-time**, making collaboration with translators, copywriters, and other team members seamless. Content can be stored locally and/or remotely. - [visual editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_visual_editor.md) - [full CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_CMS.md) ## Step-by-Step Guide to Set Up Intlayer in a Next.js Application