From f4e00e3e8f783f94850eea19d8f2c4996ed865cd Mon Sep 17 00:00:00 2001 From: theluckystrike <51033404+theluckystrike@users.noreply.github.com> Date: Sun, 4 Oct 2026 02:25:56 +0000 Subject: [PATCH] fix(docs): repair broken links in english docs Several English docs link to files that do not exist, and since the translated docs are generated from them, every locale inherits the 404s. - fastify guide: replace Google search wrapped URLs with direct links - packages/*/index.md -> packages/*/exports.md - dictionary/*_content.md, plural.md -> actual file names - fill.md -> autoFill.md, readme.md -> README.md - react-intlayer exports: docs/dictionary/translation.md -> docs/docs/en/dictionary/translation.md - intlayer_with_nextjs_no_locale_path.md (removed) -> Next.js 16 guide, which covers the setup without locale path Co-Authored-By: Claude Opus 5.5 --- docs/docs/en/dictionary/content_file.md | 26 +++++++++---------- docs/docs/en/how_works_intlayer.md | 6 ++--- docs/docs/en/intlayer_with_adonisjs.md | 8 +++--- docs/docs/en/intlayer_with_elysia.md | 8 +++--- docs/docs/en/intlayer_with_express.md | 8 +++--- docs/docs/en/intlayer_with_fastify.md | 8 +++--- docs/docs/en/intlayer_with_hono.md | 8 +++--- docs/docs/en/intlayer_with_nextjs_14.md | 14 +++++----- docs/docs/en/intlayer_with_nextjs_15.md | 14 +++++----- .../en/intlayer_with_nextjs_page_router.md | 6 ++--- .../en/packages/react-intlayer/exports.md | 24 ++++++++--------- docs/docs/en/readme.md | 2 +- docs/docs/en/releases/v7.md | 4 +-- 13 files changed, 68 insertions(+), 68 deletions(-) diff --git a/docs/docs/en/dictionary/content_file.md b/docs/docs/en/dictionary/content_file.md index e9bfcdc9ca..6c55b65752 100644 --- a/docs/docs/en/dictionary/content_file.md +++ b/docs/docs/en/dictionary/content_file.md @@ -1,6 +1,6 @@ --- createdAt: 2025-02-07 -updatedAt: 2026-09-27 +updatedAt: 2026-10-04 priority: 8 title: "Content Declaration Files (.content.ts)" description: "Declare your multilingual content in .content files next to your components: supported formats, file extensions and how Intlayer discovers them." @@ -284,17 +284,17 @@ Content nodes are the building blocks of dictionary content. They can be: Intlayer supports various content types through typed nodes: -- **Translation Content**: Multilingual text with locale-specific values [see Translation Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/translation_content.md) -- **Condition Content**: Conditional content based on boolean expressions [see Condition Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/condition_content.md) -- **Enumeration Content**: Content that varies based on enumerated values [see Enumeration Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/enumeration_content.md) -- **Plural Content**: Content that varies based on plural rules [see Plural Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/plural.md) -- **Insertion Content**: Content that can be inserted into other content [see Insertion Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/insertion_content.md) -- **Markdown Content**: Rich text content in Markdown format [see Markdown Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/markdown_content.md) +- **Translation Content**: Multilingual text with locale-specific values [see Translation Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/translation.md) +- **Condition Content**: Conditional content based on boolean expressions [see Condition Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/condition.md) +- **Enumeration Content**: Content that varies based on enumerated values [see Enumeration Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/enumeration.md) +- **Plural Content**: Content that varies based on plural rules [see Plural Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/plurial.md) +- **Insertion Content**: Content that can be inserted into other content [see Insertion Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/insertion.md) +- **Markdown Content**: Rich text content in Markdown format [see Markdown Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/markdown.md) - **HTML Content**: Rich HTML content with optional custom components [see HTML Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/html.md) -- **Nested Content**: References to other dictionaries [see Nested Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/nested_content.md) +- **Nested Content**: References to other dictionaries [see Nested Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/nesting.md) - **Gender Content**: Content that varies based on gender [see Gender Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/gender.md) - **Select Content**: Content that varies based on an arbitrary string value [see Select Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/select.md) -- **File Content**: References to external files [see File Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/file_content.md) +- **File Content**: References to external files [see File Content](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/file.md) ## Dictionary Structure @@ -509,9 +509,9 @@ Instructions for automatically filling dictionary content from external sources. - `{{fileName}}` – File name (e.g. `example`) - `{{key}}` – Dictionary key (e.g. `example`) -> See [Auto-Fill Configuration in Intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/fill.md) for more information. +> See [Auto-Fill Configuration in Intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/autoFill.md) for more information. -- [Auto-Fill Configuration in Intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/fill.md) +- [Auto-Fill Configuration in Intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/autoFill.md) ##### `priority` (number) @@ -687,9 +687,9 @@ pluralContent: plural({ }); ``` -> See [Plural Doc](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/plural.md) for more information. +> See [Plural Doc](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/plurial.md) for more information. -- [Plural Doc](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/plural.md) +- [Plural Doc](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/plurial.md) ### Enumeration Content (`enu`) diff --git a/docs/docs/en/how_works_intlayer.md b/docs/docs/en/how_works_intlayer.md index 48563bf02b..94fd55ced4 100644 --- a/docs/docs/en/how_works_intlayer.md +++ b/docs/docs/en/how_works_intlayer.md @@ -1,6 +1,6 @@ --- createdAt: 2024-08-12 -updatedAt: 2026-09-28 +updatedAt: 2026-10-04 priority: 8 title: "How Intlayer Works: Architecture Overview" description: Learn how Intlayer operates internally. Understand the architecture and components that make Intlayer powerful. @@ -52,7 +52,7 @@ The build step can be done in three ways: - using the CLI with `npx intlayer build` - using [vscode extension](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/vs_code_extension.md) -- using the app plugins such as [`vite-intlayer` package](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/vite-intlayer/index.md), or their equivalents for [Next.js](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/next-intlayer/index.md). When you use one of those plugins, Intlayer will automatically build your dictionaries when you start (dev) or build (prod) your application. +- using the app plugins such as [`vite-intlayer` package](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/vite-intlayer/exports.md), or their equivalents for [Next.js](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/next-intlayer/exports.md). When you use one of those plugins, Intlayer will automatically build your dictionaries when you start (dev) or build (prod) your application. 1. Declaration of content files - Content files can be defined in various formats, such as TypeScript, ECMAScript, CommonJS, or JSON. @@ -279,7 +279,7 @@ The `@intlayer/webpack` package is used to provide a Webpack configuration to ma ### @intlayer/cli -The `@intlayer/cli` package is an NPM package that is used to declare the scripts related to the Intlayer command line interfaces. It ensures the uniformity of all Intlayer CLI commands. This package is notably consumed by the [intlayer-cli](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/intlayer-cli/index.md), and the [intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/intlayer/index.md) packages. +The `@intlayer/cli` package is an NPM package that is used to declare the scripts related to the Intlayer command line interfaces. It ensures the uniformity of all Intlayer CLI commands. This package is notably consumed by the [intlayer-cli](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/intlayer-cli/exports.md), and the [intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/intlayer/exports.md) packages. ### @intlayer/mcp diff --git a/docs/docs/en/intlayer_with_adonisjs.md b/docs/docs/en/intlayer_with_adonisjs.md index db6527292f..1f5d5af31b 100644 --- a/docs/docs/en/intlayer_with_adonisjs.md +++ b/docs/docs/en/intlayer_with_adonisjs.md @@ -1,6 +1,6 @@ --- createdAt: 2025-08-23 -updatedAt: 2026-09-27 +updatedAt: 2026-10-04 priority: 9 title: "AdonisJS i18n - Complete guide to translate your app" description: "Set up Intlayer in AdonisJS: detect the locale per request with middleware, translate API responses and views, and keep content typed." @@ -246,9 +246,9 @@ export default class ExampleController { `adonis-intlayer` is fully compatible with: -- [`react-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/react-intlayer/index.md) -- [`next-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/next-intlayer/index.md) -- [`vite-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/vite-intlayer/index.md) +- [`react-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/react-intlayer/exports.md) +- [`next-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/next-intlayer/exports.md) +- [`vite-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/vite-intlayer/exports.md) It also works seamlessly with any internationalization solution across various environments, including browsers and API requests. You can customize the middleware to detect locale through headers or cookies: diff --git a/docs/docs/en/intlayer_with_elysia.md b/docs/docs/en/intlayer_with_elysia.md index 14a3af8950..4516611403 100644 --- a/docs/docs/en/intlayer_with_elysia.md +++ b/docs/docs/en/intlayer_with_elysia.md @@ -1,6 +1,6 @@ --- createdAt: 2026-08-23 -updatedAt: 2026-09-29 +updatedAt: 2026-10-04 priority: 9 title: "Elysia i18n - Complete guide to translate your app" description: "Set up Intlayer in Elysia: detect the locale per request with the plugin, translate API responses and keep content typed on Bun." @@ -265,9 +265,9 @@ curl -H "Accept-Language: es" http://localhost:3000/ `elysia-intlayer` is fully compatible with: -- [`react-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/react-intlayer/index.md) -- [`next-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/next-intlayer/index.md) -- [`vite-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/vite-intlayer/index.md) +- [`react-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/react-intlayer/exports.md) +- [`next-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/next-intlayer/exports.md) +- [`vite-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/vite-intlayer/exports.md) It also works seamlessly with any internationalization solution across various environments, including browsers and API requests. diff --git a/docs/docs/en/intlayer_with_express.md b/docs/docs/en/intlayer_with_express.md index b6520b52bd..aec32444d1 100644 --- a/docs/docs/en/intlayer_with_express.md +++ b/docs/docs/en/intlayer_with_express.md @@ -1,6 +1,6 @@ --- createdAt: 2025-08-23 -updatedAt: 2026-09-27 +updatedAt: 2026-10-04 priority: 9 title: "Express i18n - Complete guide to translate your app" description: "Set up Intlayer in Express: detect the locale per request with middleware, translate API responses and error messages, typed end to end." @@ -209,9 +209,9 @@ app.listen(3000, () => console.log(`Listening on port 3000`)); `express-intlayer` is fully compatible with: -- [`react-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/react-intlayer/index.md) -- [`next-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/next-intlayer/index.md) -- [`vite-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/vite-intlayer/index.md) +- [`react-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/react-intlayer/exports.md) +- [`next-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/next-intlayer/exports.md) +- [`vite-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/vite-intlayer/exports.md) It also works seamlessly with any internationalization solution across various environments, including browsers and API requests. You can customize the middleware to detect locale through headers or cookies: diff --git a/docs/docs/en/intlayer_with_fastify.md b/docs/docs/en/intlayer_with_fastify.md index 3f10e6c2a3..8e182c84a3 100644 --- a/docs/docs/en/intlayer_with_fastify.md +++ b/docs/docs/en/intlayer_with_fastify.md @@ -1,6 +1,6 @@ --- createdAt: 2025-12-30 -updatedAt: 2026-09-27 +updatedAt: 2026-10-04 priority: 9 title: "Fastify i18n - Complete guide to translate your app" description: "Set up Intlayer in Fastify: detect the locale per request with the plugin, translate API responses and error messages, typed end to end." @@ -214,9 +214,9 @@ start(); `fastify-intlayer` is fully compatible with: -- [`react-intlayer`]() for React applications -- [`next-intlayer`]() for Next.js applications -- [`vite-intlayer`]() for Vite applications +- [`react-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/react-intlayer/exports.md) for React applications +- [`next-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/next-intlayer/exports.md) for Next.js applications +- [`vite-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/vite-intlayer/exports.md) for Vite applications It also works seamlessly with any internationalization solution across various environments, including browsers and API requests. You can customize the middleware to detect locale through headers or cookies: diff --git a/docs/docs/en/intlayer_with_hono.md b/docs/docs/en/intlayer_with_hono.md index bf6b472a8e..eee1cd34be 100644 --- a/docs/docs/en/intlayer_with_hono.md +++ b/docs/docs/en/intlayer_with_hono.md @@ -1,6 +1,6 @@ --- createdAt: 2025-08-23 -updatedAt: 2026-09-27 +updatedAt: 2026-10-04 priority: 9 title: "Hono i18n - Complete guide to translate your app" description: "Set up Intlayer in Hono: detect the locale per request with middleware, translate API responses and run on Node, Bun or edge runtimes." @@ -227,9 +227,9 @@ export default app; `hono-intlayer` is fully compatible with: -- [`react-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/react-intlayer/index.md) -- [`next-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/next-intlayer/index.md) -- [`vite-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/vite-intlayer/index.md) +- [`react-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/react-intlayer/exports.md) +- [`next-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/next-intlayer/exports.md) +- [`vite-intlayer`](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/vite-intlayer/exports.md) It also works seamlessly with any internationalization solution across various environments, including browsers and API requests. You can customize the middleware to detect locale through headers or cookies: diff --git a/docs/docs/en/intlayer_with_nextjs_14.md b/docs/docs/en/intlayer_with_nextjs_14.md index 3eaa07f943..abc138189e 100644 --- a/docs/docs/en/intlayer_with_nextjs_14.md +++ b/docs/docs/en/intlayer_with_nextjs_14.md @@ -1,6 +1,6 @@ --- createdAt: 2024-12-06 -updatedAt: 2026-09-27 +updatedAt: 2026-10-04 priority: 9 title: "Next.js 14 i18n - Complete guide to translate your app" description: "Set up Intlayer in Next.js 14 App Router: locale routing middleware, Server and Client Components, and localized metadata and sitemap." @@ -62,11 +62,11 @@ Compared to main solutions like `next-intl` or `i18next`, Intlayer is a solution 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_no_locale_path.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_no_locale_path.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) @@ -218,9 +218,9 @@ Here is the final structure that we will make: └── tsconfig.json ``` -> If you don't want locale routing, intlayer can be used as a simple provider / hook. See [this guide](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_no_locale_path.md) for more details. +> If you don't want locale routing, intlayer can be used as a simple provider / hook. See [this guide](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_16.md) for more details. -- [this guide](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_no_locale_path.md) +- [this guide](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_16.md) Create a config file to configure the languages of your application: @@ -1136,10 +1136,10 @@ Yes. In Next.js 14 the App Router `params` are still synchronous, so the locale -No. `routing.mode` accepts `"prefix-no-default"` (the default, `/about` for the default locale and `/fr/about` for the others), `"prefix-all"`, `"no-prefix"` (resolved from a cookie, a header or a domain) and `"search-params"` (`/about?locale=fr`). `routing.domains` maps each locale to its own domain. See the [configuration reference](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/configuration.md) and the [guide without locale path](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_no_locale_path.md). +No. `routing.mode` accepts `"prefix-no-default"` (the default, `/about` for the default locale and `/fr/about` for the others), `"prefix-all"`, `"no-prefix"` (resolved from a cookie, a header or a domain) and `"search-params"` (`/about?locale=fr`). `routing.domains` maps each locale to its own domain. See the [configuration reference](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/configuration.md) and the [guide without locale path](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_16.md). - [configuration reference](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/configuration.md) -- [guide without locale path](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_no_locale_path.md) +- [guide without locale path](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_16.md) diff --git a/docs/docs/en/intlayer_with_nextjs_15.md b/docs/docs/en/intlayer_with_nextjs_15.md index f55f404125..854b526dba 100644 --- a/docs/docs/en/intlayer_with_nextjs_15.md +++ b/docs/docs/en/intlayer_with_nextjs_15.md @@ -1,6 +1,6 @@ --- createdAt: 2025-10-25 -updatedAt: 2026-09-27 +updatedAt: 2026-10-04 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." @@ -72,11 +72,11 @@ Compared to main solutions like `next-intl` or `i18next`, Intlayer is a solution 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_no_locale_path.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_no_locale_path.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) @@ -233,9 +233,9 @@ Here is the final structure that we will make: └── tsconfig.json ``` -> If you don't want locale routing, intlayer can be used as a simple provider / hook. See [this guide](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_no_locale_path.md) for more details. +> If you don't want locale routing, intlayer can be used as a simple provider / hook. See [this guide](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_16.md) for more details. -- [this guide](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_no_locale_path.md) +- [this guide](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_16.md) Create a config file to configure the languages of your application: @@ -1190,10 +1190,10 @@ Yes. Next.js 15 makes `params` a promise in layouts and pages, and this guide aw -No. `routing.mode` accepts `"prefix-no-default"` (the default, `/about` for the default locale and `/fr/about` for the others), `"prefix-all"`, `"no-prefix"` (resolved from a cookie, a header or a domain) and `"search-params"` (`/about?locale=fr`). `routing.domains` maps each locale to its own domain. See the [configuration reference](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/configuration.md) and the [guide without locale path](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_no_locale_path.md). +No. `routing.mode` accepts `"prefix-no-default"` (the default, `/about` for the default locale and `/fr/about` for the others), `"prefix-all"`, `"no-prefix"` (resolved from a cookie, a header or a domain) and `"search-params"` (`/about?locale=fr`). `routing.domains` maps each locale to its own domain. See the [configuration reference](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/configuration.md) and the [guide without locale path](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_16.md). - [configuration reference](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/configuration.md) -- [guide without locale path](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_no_locale_path.md) +- [guide without locale path](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_nextjs_16.md) diff --git a/docs/docs/en/intlayer_with_nextjs_page_router.md b/docs/docs/en/intlayer_with_nextjs_page_router.md index 83ede03304..0d3b8b98ef 100644 --- a/docs/docs/en/intlayer_with_nextjs_page_router.md +++ b/docs/docs/en/intlayer_with_nextjs_page_router.md @@ -1,6 +1,6 @@ --- createdAt: 2024-12-07 -updatedAt: 2026-09-27 +updatedAt: 2026-10-04 priority: 9 title: "Next.js Pages Router i18n: Complete Translation Guide" description: "Set up Intlayer in the Next.js Pages Router: localized routes with getStaticPaths, translated pages and components, hreflang and sitemap." @@ -76,11 +76,11 @@ Compared to main solutions like `next-intl` or `i18next`, Intlayer is a solution 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_no_locale_path.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_no_locale_path.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) diff --git a/docs/docs/en/packages/react-intlayer/exports.md b/docs/docs/en/packages/react-intlayer/exports.md index cc023947e7..3de5506755 100644 --- a/docs/docs/en/packages/react-intlayer/exports.md +++ b/docs/docs/en/packages/react-intlayer/exports.md @@ -1,6 +1,6 @@ --- createdAt: 2026-01-21 -updatedAt: 2026-08-22 +updatedAt: 2026-10-04 priority: 5 title: react-intlayer Package Documentation description: React-specific implementation of Intlayer, providing hooks and providers for React applications. @@ -89,17 +89,17 @@ Import: import "react-intlayer"; ``` -| Function | Description | Related Doc | -| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `renderHTML` | Standalone utility for rendering HTML outside of components. | - | -| `renderMarkdown` | Standalone utility for rendering Markdown outside of components. | - | -| `t` | Client-side translation function that returns the translation of the provided multilang content. Uses context locale if not provided. | [translation](https://github.com/aymericzip/intlayer/blob/main/docs/dictionary/translation.md) | -| `getDictionary` | Processes dictionary objects and returns content for the specified locale. Processes `t()` translations, enumerations, markdown, HTML, etc. | - | -| `getIntlayer` | Retrieves a dictionary by its key from the generated declaration and returns its content for the specified locale. Optimized version of `getDictionary`. | - | -| `setLocaleInStorage` | Sets the locale in storage (local storage or cookie based on configuration). | - | -| `setLocaleCookie` | Deprecated. Use `setLocaleInStorage` instead. Sets the locale in a cookie. | - | -| `localeInStorage` | Gets the locale from storage (local storage or cookie). | - | -| `localeCookie` | Deprecated. Use `localeInStorage` instead. Gets the locale from cookie. | - | +| Function | Description | Related Doc | +| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | +| `renderHTML` | Standalone utility for rendering HTML outside of components. | - | +| `renderMarkdown` | Standalone utility for rendering Markdown outside of components. | - | +| `t` | Client-side translation function that returns the translation of the provided multilang content. Uses context locale if not provided. | [translation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/translation.md) | +| `getDictionary` | Processes dictionary objects and returns content for the specified locale. Processes `t()` translations, enumerations, markdown, HTML, etc. | - | +| `getIntlayer` | Retrieves a dictionary by its key from the generated declaration and returns its content for the specified locale. Optimized version of `getDictionary`. | - | +| `setLocaleInStorage` | Sets the locale in storage (local storage or cookie based on configuration). | - | +| `setLocaleCookie` | Deprecated. Use `setLocaleInStorage` instead. Sets the locale in a cookie. | - | +| `localeInStorage` | Gets the locale from storage (local storage or cookie). | - | +| `localeCookie` | Deprecated. Use `localeInStorage` instead. Gets the locale from cookie. | - | ### Components diff --git a/docs/docs/en/readme.md b/docs/docs/en/readme.md index 596acf89b8..30a2ab0b91 100644 --- a/docs/docs/en/readme.md +++ b/docs/docs/en/readme.md @@ -273,7 +273,7 @@ Intlayer connects **developers**, **copywriters**, and **AI agents** in one work ## 🌐 Readme in other languages

- English • + English • 简体中文 • Русский • 日本語 • diff --git a/docs/docs/en/releases/v7.md b/docs/docs/en/releases/v7.md index c2e49b2987..d1b0549666 100644 --- a/docs/docs/en/releases/v7.md +++ b/docs/docs/en/releases/v7.md @@ -1,6 +1,6 @@ --- createdAt: 2025-09-22 -updatedAt: 2025-09-23 +updatedAt: 2026-10-04 priority: 2 title: New Intlayer v7 - What's new? description: Discover what's new in Intlayer v7. Major improvements in performance, developer experience, and new features to enhance your internationalization workflow. @@ -615,6 +615,6 @@ Check the [migration notes from v5 to v6](https://github.com/aymericzip/intlayer ## Useful links - [Configuration Reference](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/configuration.md) -- [Middleware Documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/next-intlayer/index.md) +- [Middleware Documentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/next-intlayer/exports.md) - [TypeScript Types](https://github.com/aymericzip/intlayer/blob/main/packages/%40intlayer/types/src/index.ts) - [GDPR Cookie Guidelines](https://gdpr.eu/cookies/)