@intlayer/docs 7.2.0 → 7.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,6 +42,14 @@ history:
42
42
 
43
43
  ## دليل خطوة بخطوة لإعداد Intlayer في تطبيق SvelteKit
44
44
 
45
+ <iframe
46
+ src="https://stackblitz.com/github/aymericzip/intlayer-sveltekit-template?embed=1&ctl=1&file=intlayer.config.ts"
47
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
48
+ title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
49
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
50
+ loading="lazy"
51
+ />
52
+
45
53
  للبدء، أنشئ مشروع SvelteKit جديد. إليك الهيكل النهائي الذي سننشئه:
46
54
 
47
55
  ```bash
@@ -42,6 +42,14 @@ Mit Intlayer können Sie:
42
42
 
43
43
  ## Schritt-für-Schritt-Anleitung zur Einrichtung von Intlayer in einer SvelteKit-Anwendung
44
44
 
45
+ <iframe
46
+ src="https://stackblitz.com/github/aymericzip/intlayer-sveltekit-template?embed=1&ctl=1&file=intlayer.config.ts"
47
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
48
+ title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
49
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
50
+ loading="lazy"
51
+ />
52
+
45
53
  Um zu beginnen, erstellen Sie ein neues SvelteKit-Projekt. Hier ist die finale Struktur, die wir erstellen werden:
46
54
 
47
55
  ```bash
@@ -197,7 +197,7 @@ module.exports = withIntlayer(nextConfig);
197
197
 
198
198
  > The `withIntlayer()` function is a promise function. It allows to prepare the intlayer dictionaries before the build starts. If you want to use it with other plugins, you can await it. Example:
199
199
  >
200
- > ```tsx
200
+ > ```ts
201
201
  > const nextConfig = await withIntlayer(nextConfig);
202
202
  > const nextConfigWithOtherPlugins = withOtherPlugins(nextConfig);
203
203
  >
@@ -206,13 +206,21 @@ module.exports = withIntlayer(nextConfig);
206
206
  >
207
207
  > If you want to use it synchronously, you can use the `withIntlayerSync()` function. Example:
208
208
  >
209
- > ```tsx
209
+ > ```ts
210
210
  > const nextConfig = withIntlayerSync(nextConfig);
211
211
  > const nextConfigWithOtherPlugins = withOtherPlugins(nextConfig);
212
212
  >
213
213
  > export default nextConfigWithOtherPlugins;
214
214
  > ```
215
215
 
216
+ > Intlayer automatically detects whether your project is using **webpack** or **Turbopack** based on the command-line flags `--webpack`, `--turbo`, or `--turbopack`, as well as your current **Next.js version**.
217
+ >
218
+ > Since `next>=16`, if you are using **Rspack**, you must explicitly force Intlayer to use the webpack configuration by disabling Turbopack:
219
+ >
220
+ > ```ts
221
+ > withRspack(withIntlayer(nextConfig, { enableTurbopack: false }));
222
+ > ```
223
+
216
224
  ### Step 4: Define Dynamic Locale Routes
217
225
 
218
226
  Remove everything from `RootLayout` and replace it with the following code:
@@ -42,6 +42,16 @@ With Intlayer, you can:
42
42
 
43
43
  ## Step-by-Step Guide to Set Up Intlayer in a SvelteKit Application
44
44
 
45
+ <iframe
46
+ src="https://stackblitz.com/github/aymericzip/intlayer-sveltekit-template?embed=1&ctl=1&file=intlayer.config.ts"
47
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
48
+ title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
49
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
50
+ loading="lazy"
51
+ />
52
+
53
+ See [Application Template](https://github.com/aymericzip/intlayer-sveltekit-template) on GitHub.
54
+
45
55
  To get started, create a new SvelteKit project. Here is the final structure that we will make:
46
56
 
47
57
  ```bash
@@ -42,6 +42,14 @@ With Intlayer, you can:
42
42
 
43
43
  ## Step-by-Step Guide to Set Up Intlayer in a SvelteKit Application
44
44
 
45
+ <iframe
46
+ src="https://stackblitz.com/github/aymericzip/intlayer-sveltekit-template?embed=1&ctl=1&file=intlayer.config.ts"
47
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
48
+ title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
49
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
50
+ loading="lazy"
51
+ />
52
+
45
53
  To get started, create a new SvelteKit project. Here is the final structure that we will make:
46
54
 
47
55
  ```bash
@@ -42,6 +42,14 @@ Con Intlayer, puedes:
42
42
 
43
43
  ## Guía paso a paso para configurar Intlayer en una aplicación SvelteKit
44
44
 
45
+ <iframe
46
+ src="https://stackblitz.com/github/aymericzip/intlayer-sveltekit-template?embed=1&ctl=1&file=intlayer.config.ts"
47
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
48
+ title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
49
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
50
+ loading="lazy"
51
+ />
52
+
45
53
  Para comenzar, crea un nuevo proyecto SvelteKit. Aquí está la estructura final que crearemos:
46
54
 
47
55
  ```bash
@@ -42,6 +42,14 @@ Avec Intlayer, vous pouvez :
42
42
 
43
43
  ## Guide étape par étape pour configurer Intlayer dans une application SvelteKit
44
44
 
45
+ <iframe
46
+ src="https://stackblitz.com/github/aymericzip/intlayer-sveltekit-template?embed=1&ctl=1&file=intlayer.config.ts"
47
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
48
+ title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
49
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
50
+ loading="lazy"
51
+ />
52
+
45
53
  Pour commencer, créez un nouveau projet SvelteKit. Voici la structure finale que nous allons réaliser :
46
54
 
47
55
  ```bash
@@ -42,6 +42,14 @@ Intlayer के साथ, आप कर सकते हैं:
42
42
 
43
43
  ## SvelteKit एप्लिकेशन में Intlayer सेटअप करने के लिए चरण-दर-चरण मार्गदर्शिका
44
44
 
45
+ <iframe
46
+ src="https://stackblitz.com/github/aymericzip/intlayer-sveltekit-template?embed=1&ctl=1&file=intlayer.config.ts"
47
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
48
+ title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
49
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
50
+ loading="lazy"
51
+ />
52
+
45
53
  शुरू करने के लिए, एक नया SvelteKit प्रोजेक्ट बनाएं। यहाँ अंतिम संरचना है जिसे हम बनाएंगे:
46
54
 
47
55
  ```bash
@@ -42,6 +42,14 @@ Dengan Intlayer, Anda dapat:
42
42
 
43
43
  ## Panduan Langkah demi Langkah untuk Mengatur Intlayer dalam Aplikasi SvelteKit
44
44
 
45
+ <iframe
46
+ src="https://stackblitz.com/github/aymericzip/intlayer-sveltekit-template?embed=1&ctl=1&file=intlayer.config.ts"
47
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
48
+ title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
49
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
50
+ loading="lazy"
51
+ />
52
+
45
53
  Untuk memulai, buat proyek SvelteKit baru. Berikut adalah struktur akhir yang akan kita buat:
46
54
 
47
55
  ```bash
@@ -42,6 +42,14 @@ Con Intlayer, puoi:
42
42
 
43
43
  ## Guida passo-passo per configurare Intlayer in un'applicazione SvelteKit
44
44
 
45
+ <iframe
46
+ src="https://stackblitz.com/github/aymericzip/intlayer-sveltekit-template?embed=1&ctl=1&file=intlayer.config.ts"
47
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
48
+ title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
49
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
50
+ loading="lazy"
51
+ />
52
+
45
53
  Per iniziare, crea un nuovo progetto SvelteKit. Ecco la struttura finale che realizzeremo:
46
54
 
47
55
  ```bash
@@ -44,6 +44,14 @@ Intlayerを使うことで、以下が可能になります:
44
44
 
45
45
  まずは新しいSvelteKitプロジェクトを作成しましょう。以下は最終的に作成する構成です:
46
46
 
47
+ <iframe
48
+ src="https://stackblitz.com/github/aymericzip/intlayer-sveltekit-template?embed=1&ctl=1&file=intlayer.config.ts"
49
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
50
+ title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
51
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
52
+ loading="lazy"
53
+ />
54
+
47
55
  ```bash
48
56
  .
49
57
  ├── intlayer.config.ts
@@ -42,6 +42,14 @@ Intlayer를 사용하면 다음을 할 수 있습니다:
42
42
 
43
43
  ## SvelteKit 애플리케이션에서 Intlayer 설정 단계별 가이드
44
44
 
45
+ <iframe
46
+ src="https://stackblitz.com/github/aymericzip/intlayer-sveltekit-template?embed=1&ctl=1&file=intlayer.config.ts"
47
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
48
+ title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
49
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
50
+ loading="lazy"
51
+ />
52
+
45
53
  시작하려면 새 SvelteKit 프로젝트를 생성하세요. 다음은 우리가 만들 최종 구조입니다:
46
54
 
47
55
  ```bash
@@ -42,6 +42,14 @@ Dzięki Intlayer możesz:
42
42
 
43
43
  ## Przewodnik krok po kroku: konfiguracja Intlayer w aplikacji SvelteKit
44
44
 
45
+ <iframe
46
+ src="https://stackblitz.com/github/aymericzip/intlayer-sveltekit-template?embed=1&ctl=1&file=intlayer.config.ts"
47
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
48
+ title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
49
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
50
+ loading="lazy"
51
+ />
52
+
45
53
  Aby rozpocząć, utwórz nowy projekt SvelteKit. Oto końcowa struktura, którą stworzymy:
46
54
 
47
55
  ```bash
@@ -44,6 +44,14 @@ Com o Intlayer, você pode:
44
44
 
45
45
  Para começar, crie um novo projeto SvelteKit. Aqui está a estrutura final que iremos criar:
46
46
 
47
+ <iframe
48
+ src="https://stackblitz.com/github/aymericzip/intlayer-sveltekit-template?embed=1&ctl=1&file=intlayer.config.ts"
49
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
50
+ title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
51
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
52
+ loading="lazy"
53
+ />
54
+
47
55
  ```bash
48
56
  .
49
57
  ├── intlayer.config.ts
@@ -42,6 +42,14 @@ history:
42
42
 
43
43
  ## Пошаговое руководство по настройке Intlayer в приложении SvelteKit
44
44
 
45
+ <iframe
46
+ src="https://stackblitz.com/github/aymericzip/intlayer-sveltekit-template?embed=1&ctl=1&file=intlayer.config.ts"
47
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
48
+ title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
49
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
50
+ loading="lazy"
51
+ />
52
+
45
53
  Для начала создайте новый проект SvelteKit. Вот итоговая структура, которую мы создадим:
46
54
 
47
55
  ```bash
@@ -44,6 +44,14 @@ Intlayer ile şunları yapabilirsiniz:
44
44
 
45
45
  Başlamak için yeni bir SvelteKit projesi oluşturun. İşte oluşturacağımız son yapı:
46
46
 
47
+ <iframe
48
+ src="https://stackblitz.com/github/aymericzip/intlayer-sveltekit-template?embed=1&ctl=1&file=intlayer.config.ts"
49
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
50
+ title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
51
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
52
+ loading="lazy"
53
+ />
54
+
47
55
  ```bash
48
56
  .
49
57
  ├── intlayer.config.ts
@@ -42,6 +42,14 @@ Với Intlayer, bạn có thể:
42
42
 
43
43
  ## Hướng dẫn từng bước để thiết lập Intlayer trong ứng dụng SvelteKit
44
44
 
45
+ <iframe
46
+ src="https://stackblitz.com/github/aymericzip/intlayer-sveltekit-template?embed=1&ctl=1&file=intlayer.config.ts"
47
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
48
+ title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
49
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
50
+ loading="lazy"
51
+ />
52
+
45
53
  Để bắt đầu, hãy tạo một dự án SvelteKit mới. Dưới đây là cấu trúc cuối cùng mà chúng ta sẽ tạo:
46
54
 
47
55
  ```bash
@@ -44,6 +44,14 @@ history:
44
44
 
45
45
  首先,创建一个新的 SvelteKit 项目。以下是我们将要构建的最终结构:
46
46
 
47
+ <iframe
48
+ src="https://stackblitz.com/github/aymericzip/intlayer-sveltekit-template?embed=1&ctl=1&file=intlayer.config.ts"
49
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
50
+ title="Demo CodeSandbox - Cách quốc tế hóa ứng dụng của bạn bằng Intlayer"
51
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
52
+ loading="lazy"
53
+ />
54
+
47
55
  ```bash
48
56
  .
49
57
  ├── intlayer.config.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/docs",
3
- "version": "7.2.0",
3
+ "version": "7.2.2",
4
4
  "private": false,
5
5
  "description": "Intlayer documentation",
6
6
  "keywords": [
@@ -72,23 +72,23 @@
72
72
  "watch": "webpack --config ./webpack.config.ts --watch"
73
73
  },
74
74
  "dependencies": {
75
- "@intlayer/config": "7.2.0",
76
- "@intlayer/core": "7.2.0",
77
- "@intlayer/types": "7.2.0"
75
+ "@intlayer/config": "7.2.2",
76
+ "@intlayer/core": "7.2.1",
77
+ "@intlayer/types": "7.2.2"
78
78
  },
79
79
  "devDependencies": {
80
- "@intlayer/api": "7.2.0",
81
- "@intlayer/cli": "7.2.0",
80
+ "@intlayer/api": "7.2.2",
81
+ "@intlayer/cli": "7.2.2",
82
82
  "@types/node": "24.10.1",
83
83
  "@utils/ts-config": "1.0.4",
84
84
  "@utils/ts-config-types": "1.0.4",
85
85
  "@utils/tsdown-config": "1.0.4",
86
86
  "fast-glob": "3.3.3",
87
- "rimraf": "6.1.0",
88
- "tsdown": "0.16.5",
87
+ "rimraf": "6.1.2",
88
+ "tsdown": "0.16.6",
89
89
  "tsx": "^4.20.6",
90
90
  "typescript": "5.9.3",
91
- "vitest": "4.0.10"
91
+ "vitest": "4.0.12"
92
92
  },
93
93
  "engines": {
94
94
  "node": ">=14.18"