@intlayer/docs 8.0.4 → 8.0.5

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.
Files changed (139) hide show
  1. package/dist/cjs/blog.cjs +1 -0
  2. package/dist/cjs/blog.cjs.map +1 -1
  3. package/dist/cjs/common.cjs +1 -0
  4. package/dist/cjs/common.cjs.map +1 -1
  5. package/dist/cjs/doc.cjs +1 -0
  6. package/dist/cjs/doc.cjs.map +1 -1
  7. package/dist/cjs/frequentQuestions.cjs +1 -0
  8. package/dist/cjs/frequentQuestions.cjs.map +1 -1
  9. package/dist/cjs/generated/blog.entry.cjs +1 -0
  10. package/dist/cjs/generated/blog.entry.cjs.map +1 -1
  11. package/dist/cjs/generated/docs.entry.cjs +21 -0
  12. package/dist/cjs/generated/docs.entry.cjs.map +1 -1
  13. package/dist/cjs/generated/frequentQuestions.entry.cjs +1 -0
  14. package/dist/cjs/generated/frequentQuestions.entry.cjs.map +1 -1
  15. package/dist/cjs/generated/legal.entry.cjs +1 -0
  16. package/dist/cjs/generated/legal.entry.cjs.map +1 -1
  17. package/dist/cjs/index.cjs +1 -0
  18. package/dist/cjs/legal.cjs +1 -0
  19. package/dist/cjs/legal.cjs.map +1 -1
  20. package/dist/esm/generated/docs.entry.mjs +20 -0
  21. package/dist/esm/generated/docs.entry.mjs.map +1 -1
  22. package/dist/types/generated/docs.entry.d.ts +1 -0
  23. package/dist/types/generated/docs.entry.d.ts.map +1 -1
  24. package/docs/ar/cli/doc-translate.md +1 -0
  25. package/docs/ar/cli/fill.md +1 -0
  26. package/docs/ar/configuration.md +10 -0
  27. package/docs/ar/intlayer_with_analog.md +371 -0
  28. package/docs/ar/intlayer_with_angular.md +12 -14
  29. package/docs/ar/packages/solid-intlayer/useIntlayer.md +1 -1
  30. package/docs/de/agent_skills.md +53 -0
  31. package/docs/de/cli/doc-translate.md +1 -0
  32. package/docs/de/cli/fill.md +1 -0
  33. package/docs/de/configuration.md +10 -0
  34. package/docs/de/intlayer_with_analog.md +369 -0
  35. package/docs/de/intlayer_with_angular.md +11 -16
  36. package/docs/de/packages/solid-intlayer/useIntlayer.md +1 -1
  37. package/docs/en/agent_skills.md +53 -0
  38. package/docs/en/cli/doc-translate.md +1 -0
  39. package/docs/en/cli/fill.md +1 -0
  40. package/docs/en/configuration.md +21 -1
  41. package/docs/en/intlayer_with_analog.md +4 -12
  42. package/docs/en/intlayer_with_angular.md +13 -15
  43. package/docs/en/packages/react-intlayer/useIntlayer.md +1 -1
  44. package/docs/en/packages/solid-intlayer/useIntlayer.md +1 -1
  45. package/docs/en-GB/cli/doc-translate.md +1 -0
  46. package/docs/en-GB/cli/fill.md +1 -0
  47. package/docs/en-GB/configuration.md +10 -0
  48. package/docs/en-GB/intlayer_with_analog.md +369 -0
  49. package/docs/en-GB/intlayer_with_angular.md +12 -14
  50. package/docs/en-GB/packages/solid-intlayer/useIntlayer.md +1 -1
  51. package/docs/es/agent_skills.md +53 -0
  52. package/docs/es/cli/doc-translate.md +1 -0
  53. package/docs/es/cli/fill.md +1 -0
  54. package/docs/es/configuration.md +10 -0
  55. package/docs/es/intlayer_with_analog.md +369 -0
  56. package/docs/es/intlayer_with_angular.md +11 -16
  57. package/docs/es/packages/solid-intlayer/useIntlayer.md +1 -1
  58. package/docs/fr/agent_skills.md +53 -0
  59. package/docs/fr/cli/doc-translate.md +1 -0
  60. package/docs/fr/cli/fill.md +1 -0
  61. package/docs/fr/configuration.md +10 -0
  62. package/docs/fr/intlayer_with_analog.md +369 -0
  63. package/docs/fr/intlayer_with_angular.md +11 -16
  64. package/docs/fr/packages/solid-intlayer/useIntlayer.md +1 -1
  65. package/docs/hi/cli/doc-translate.md +1 -0
  66. package/docs/hi/cli/fill.md +1 -0
  67. package/docs/hi/configuration.md +10 -0
  68. package/docs/hi/intlayer_with_analog.md +371 -0
  69. package/docs/hi/intlayer_with_angular.md +12 -14
  70. package/docs/hi/packages/solid-intlayer/useIntlayer.md +1 -1
  71. package/docs/id/cli/doc-translate.md +1 -0
  72. package/docs/id/cli/fill.md +1 -0
  73. package/docs/id/configuration.md +10 -0
  74. package/docs/id/intlayer_with_analog.md +371 -0
  75. package/docs/id/intlayer_with_angular.md +12 -14
  76. package/docs/id/packages/solid-intlayer/useIntlayer.md +1 -1
  77. package/docs/it/agent_skills.md +53 -0
  78. package/docs/it/cli/doc-translate.md +1 -0
  79. package/docs/it/cli/fill.md +1 -0
  80. package/docs/it/configuration.md +10 -0
  81. package/docs/it/intlayer_with_analog.md +371 -0
  82. package/docs/it/intlayer_with_angular.md +12 -14
  83. package/docs/it/packages/solid-intlayer/useIntlayer.md +1 -1
  84. package/docs/ja/agent_skills.md +53 -0
  85. package/docs/ja/cli/doc-translate.md +1 -0
  86. package/docs/ja/cli/fill.md +1 -0
  87. package/docs/ja/configuration.md +10 -0
  88. package/docs/ja/intlayer_with_analog.md +365 -0
  89. package/docs/ja/intlayer_with_angular.md +12 -14
  90. package/docs/ja/packages/solid-intlayer/useIntlayer.md +1 -1
  91. package/docs/ko/agent_skills.md +53 -0
  92. package/docs/ko/cli/doc-translate.md +1 -0
  93. package/docs/ko/cli/fill.md +1 -0
  94. package/docs/ko/configuration.md +10 -0
  95. package/docs/ko/intlayer_with_analog.md +365 -0
  96. package/docs/ko/intlayer_with_angular.md +12 -14
  97. package/docs/ko/packages/solid-intlayer/useIntlayer.md +1 -1
  98. package/docs/pl/cli/doc-translate.md +1 -0
  99. package/docs/pl/cli/fill.md +1 -0
  100. package/docs/pl/configuration.md +10 -0
  101. package/docs/pl/intlayer_with_analog.md +371 -0
  102. package/docs/pl/intlayer_with_angular.md +12 -14
  103. package/docs/pl/packages/solid-intlayer/useIntlayer.md +1 -1
  104. package/docs/pt/agent_skills.md +53 -0
  105. package/docs/pt/cli/doc-translate.md +1 -0
  106. package/docs/pt/cli/fill.md +1 -0
  107. package/docs/pt/configuration.md +10 -0
  108. package/docs/pt/intlayer_with_analog.md +371 -0
  109. package/docs/pt/intlayer_with_angular.md +12 -14
  110. package/docs/pt/packages/solid-intlayer/useIntlayer.md +1 -1
  111. package/docs/ru/cli/doc-translate.md +1 -0
  112. package/docs/ru/cli/fill.md +1 -0
  113. package/docs/ru/configuration.md +18 -0
  114. package/docs/ru/intlayer_with_analog.md +371 -0
  115. package/docs/ru/intlayer_with_angular.md +12 -14
  116. package/docs/ru/packages/solid-intlayer/useIntlayer.md +1 -1
  117. package/docs/tr/cli/doc-translate.md +1 -0
  118. package/docs/tr/cli/fill.md +1 -0
  119. package/docs/tr/configuration.md +10 -0
  120. package/docs/tr/intlayer_with_analog.md +365 -0
  121. package/docs/tr/intlayer_with_angular.md +12 -14
  122. package/docs/tr/packages/solid-intlayer/useIntlayer.md +1 -1
  123. package/docs/uk/cli/doc-translate.md +1 -0
  124. package/docs/uk/cli/fill.md +1 -0
  125. package/docs/uk/configuration.md +10 -0
  126. package/docs/uk/intlayer_with_analog.md +365 -0
  127. package/docs/uk/intlayer_with_angular.md +12 -14
  128. package/docs/uk/packages/solid-intlayer/useIntlayer.md +1 -1
  129. package/docs/vi/configuration.md +10 -0
  130. package/docs/vi/intlayer_with_analog.md +365 -0
  131. package/docs/vi/intlayer_with_angular.md +12 -14
  132. package/docs/vi/packages/solid-intlayer/useIntlayer.md +1 -1
  133. package/docs/zh/agent_skills.md +53 -0
  134. package/docs/zh/configuration.md +10 -0
  135. package/docs/zh/intlayer_with_analog.md +365 -0
  136. package/docs/zh/intlayer_with_angular.md +12 -14
  137. package/docs/zh/packages/solid-intlayer/useIntlayer.md +1 -1
  138. package/package.json +8 -8
  139. package/src/generated/docs.entry.ts +20 -0
@@ -0,0 +1,369 @@
1
+ ---
2
+ createdAt: 2025-04-18
3
+ updatedAt: 2025-12-30
4
+ title: Analog i18n - So übersetzen Sie Ihre Analog-App – Leitfaden 2026
5
+ description: Erfahren Sie, wie Sie Ihre Analog-App mehrsprachig machen. Folgen Sie der Dokumentation zur Internationalisierung (i18n) und Übersetzung.
6
+ keywords:
7
+ - Internationalisierung
8
+ - Dokumentation
9
+ - Intlayer
10
+ - Analog
11
+ - Angular
12
+ - JavaScript
13
+ slugs:
14
+ - doc
15
+ - umgebung
16
+ - analog
17
+ applicationTemplate: https://github.com/aymericzip/intlayer/tree/main/examples/analog-app-template
18
+ history:
19
+ - version: 8.0.4
20
+ date: 2026-01-26
21
+ changes: Historie initialisiert
22
+ ---
23
+
24
+ # Übersetzen Sie Ihre Analog (Angular) App mit Intlayer | Internationalisierung (i18n)
25
+
26
+ ## Inhaltsverzeichnis
27
+
28
+ <TOC/>
29
+
30
+ ## Was ist Intlayer?
31
+
32
+ **Intlayer** ist eine innovative Open-Source-Internationalisierungsbibliothek (i18n), die entwickelt wurde, um die mehrsprachige Unterstützung in modernen Webanwendungen zu vereinfachen.
33
+
34
+ Mit Intlayer können Sie:
35
+
36
+ - **Übersetzungen einfach verwalten** durch deklarative Wörterbücher auf Komponentenebene.
37
+ - **Metadaten, Routen und Inhalte dynamisch lokalisieren**.
38
+ - **TypeScript-Unterstützung sicherstellen** durch automatisch generierte Typen, was die Autovervollständigung und Fehlererkennung verbessert.
39
+ - **Von erweiterten Funktionen profitieren**, wie dynamischer Spracherkennung und -umschaltung.
40
+
41
+ ---
42
+
43
+ ## Schritt-für-Schritt-Anleitung zur Einrichtung von Intlayer in einer Analog-Anwendung
44
+
45
+ <Tabs defaultTab="code">
46
+ <Tab label="Code" value="code">
47
+
48
+ <iframe
49
+ src="https://stackblitz.com/github/aymericzip/intlayer/tree/main/examples/vite-analog-app?embed=1&ctl=1&file=intlayer.config.ts"
50
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
51
+ title="Demo CodeSandbox - So internationalisieren Sie Ihre Anwendung mit Intlayer"
52
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
53
+ loading="lazy"
54
+ />
55
+
56
+ </Tab>
57
+ </Tabs>
58
+
59
+ Siehe [Anwendungsvorlage](https://github.com/aymericzip/intlayer/tree/main/examples/analog-app-template) auf GitHub.
60
+
61
+ ### Schritt 1: Abhängigkeiten installieren
62
+
63
+ Installieren Sie die erforderlichen Pakete mit npm:
64
+
65
+ ```bash packageManager="npm"
66
+ npm install intlayer angular-intlayer vite-intlayer
67
+ npx intlayer init
68
+ ```
69
+
70
+ ```bash packageManager="pnpm"
71
+ pnpm add intlayer angular-intlayer vite-intlayer
72
+ pnpm intlayer init
73
+ ```
74
+
75
+ ```bash packageManager="yarn"
76
+ yarn add intlayer angular-intlayer vite-intlayer
77
+ yarn intlayer init
78
+ ```
79
+
80
+ ```bash packageManager="bun"
81
+ bun add intlayer angular-intlayer vite-intlayer
82
+ bunx intlayer init
83
+ ```
84
+
85
+ - **intlayer**
86
+
87
+ Das Kernpaket, das Internationalisierungswerkzeuge für Konfigurationsmanagement, Übersetzung, [Inhaltsdeklaration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/de/dictionary/content_file.md), Transpilierung und [CLI-Befehle](https://github.com/aymericzip/intlayer/blob/main/docs/docs/de/cli/index.md) bereitstellt.
88
+
89
+ - **angular-intlayer**
90
+ Das Paket, das Intlayer in die Angular-Anwendung integriert. Es bietet Kontext-Provider und Hooks für die Angular-Internationalisierung.
91
+
92
+ - **vite-intlayer**
93
+ Das Paket, das Intlayer in Vite integriert. Es bietet ein Plugin zur Verarbeitung von Inhaltsdeklarationsdateien und richtet Aliase für optimale Leistung ein.
94
+
95
+ ### Schritt 2: Konfiguration Ihres Projekts
96
+
97
+ Erstellen Sie eine Konfigurationsdatei, um die Sprachen Ihrer Anwendung zu konfigurieren:
98
+
99
+ ```typescript fileName="intlayer.config.ts" codeFormat="typescript"
100
+ import { Locales, type IntlayerConfig } from "intlayer";
101
+
102
+ const config: IntlayerConfig = {
103
+ internationalization: {
104
+ locales: [
105
+ Locales.ENGLISH,
106
+ Locales.FRENCH,
107
+ Locales.SPANISH,
108
+ // Ihre anderen Locales
109
+ ],
110
+ defaultLocale: Locales.ENGLISH,
111
+ },
112
+ };
113
+
114
+ export default config;
115
+ ```
116
+
117
+ ```javascript fileName="intlayer.config.mjs" codeFormat="esm"
118
+ import { Locales } from "intlayer";
119
+
120
+ /** @type {import('intlayer').IntlayerConfig} */
121
+ const config = {
122
+ internationalization: {
123
+ locales: [
124
+ Locales.ENGLISH,
125
+ Locales.FRENCH,
126
+ Locales.SPANISH,
127
+ // Ihre anderen Locales
128
+ ],
129
+ defaultLocale: Locales.ENGLISH,
130
+ },
131
+ };
132
+
133
+ export default config;
134
+ ```
135
+
136
+ ```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
137
+ const { Locales } = require("intlayer");
138
+
139
+ /** @type {import('intlayer').IntlayerConfig} */
140
+ const config = {
141
+ internationalization: {
142
+ locales: [
143
+ Locales.ENGLISH,
144
+ Locales.FRENCH,
145
+ Locales.SPANISH,
146
+ // Ihre anderen Locales
147
+ ],
148
+ defaultLocale: Locales.ENGLISH,
149
+ },
150
+ };
151
+
152
+ module.exports = config;
153
+ ```
154
+
155
+ > Über diese Konfigurationsdatei können Sie lokalisierte URLs, Middleware-Weiterleitungen, Cookie-Namen, den Speicherort und die Erweiterung Ihrer Inhaltsdeklarationen festlegen, Intlayer-Protokolle in der Konsole deaktivieren und vieles mehr. Eine vollständige Liste der verfügbaren Parameter finden Sie in der [Konfigurationsdokumentation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/de/configuration.md).
156
+
157
+ ### Schritt 3: Intlayer in Ihre Vite-Konfiguration integrieren
158
+
159
+ Um Intlayer in Analog zu integrieren, müssen Sie das `vite-intlayer`-Plugin verwenden.
160
+
161
+ Ändern Sie Ihre `vite.config.ts`-Datei:
162
+
163
+ ```typescript fileName="vite.config.ts"
164
+ import { defineConfig } from "vite";
165
+ import { intlayer } from "vite-intlayer";
166
+ import analog from "@analogjs/platform";
167
+
168
+ // https://vitejs.dev/config/
169
+ export default defineConfig(() => ({
170
+ plugins: [
171
+ analog(),
172
+ intlayer(), // Fügen Sie das Intlayer-Plugin hinzu
173
+ ],
174
+ }));
175
+ ```
176
+
177
+ > Das `intlayer()`-Plugin konfiguriert Vite mit Intlayer. Es verarbeitet Inhaltsdeklarationsdateien und richtet Aliase für optimale Leistung ein.
178
+
179
+ ### Schritt 4: Deklarieren Sie Ihre Inhalte
180
+
181
+ Erstellen und verwalten Sie Ihre Inhaltsdeklarationen, um Übersetzungen zu speichern:
182
+
183
+ ```tsx fileName="src/app/app.content.ts" contentDeclarationFormat="typescript"
184
+ import { t, type Dictionary } from "intlayer";
185
+
186
+ const appContent = {
187
+ key: "app",
188
+ content: {
189
+ title: t({
190
+ en: "Hello",
191
+ fr: "Bonjour",
192
+ es: "Hola",
193
+ }),
194
+ congratulations: t({
195
+ en: "Congratulations! Your app is running. 🎉",
196
+ fr: "Félicitations! Votre application est en cours d'exécution. 🎉",
197
+ es: "¡Felicidades! Tu aplicación está en ejecución. 🎉",
198
+ }),
199
+ },
200
+ } satisfies Dictionary;
201
+
202
+ export default appContent;
203
+ ```
204
+
205
+ > Ihre Inhaltsdeklarationen können überall in Ihrer Anwendung definiert werden, solange sie im Verzeichnis `contentDir` (standardmäßig `./src`) enthalten sind und der Dateierweiterung für Inhaltsdeklarationen entsprechen (standardmäßig `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
206
+
207
+ > Weitere Einzelheiten finden Sie in der [Dokumentation zur Inhaltsdeklaration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/de/dictionary/content_file.md).
208
+
209
+ ### Schritt 5: Intlayer in Ihrem Code verwenden
210
+
211
+ Um die Internationalisierungsfunktionen von Intlayer in Ihrer gesamten Analog-Anwendung zu nutzen, müssen Sie Intlayer in Ihrer Anwendungskonfiguration bereitstellen.
212
+
213
+ ```typescript fileName="src/app/app.config.ts"
214
+ import { ApplicationConfig } from "@angular/core";
215
+ import { provideIntlayer } from "angular-intlayer";
216
+
217
+ export const appConfig: ApplicationConfig = {
218
+ providers: [
219
+ provideIntlayer(), // Fügen Sie den Intlayer-Provider hier hinzu
220
+ ],
221
+ };
222
+ ```
223
+
224
+ Anschließend können Sie die Funktion `useIntlayer` in jeder Komponente verwenden.
225
+
226
+ ```typescript fileName="src/app/pages/index.page.ts"
227
+ import { Component } from "@angular/core";
228
+ import { useIntlayer } from "angular-intlayer";
229
+
230
+ @Component({
231
+ selector: "app-home",
232
+ standalone: true,
233
+ template: `
234
+ <div class="content">
235
+ <h1>{{ content().title }}</h1>
236
+ <p>{{ content().congratulations }}</p>
237
+ </div>
238
+ `,
239
+ })
240
+ export default class HomeComponent {
241
+ content = useIntlayer("app");
242
+ }
243
+ ```
244
+
245
+ Intlayer-Inhalte werden als `Signal` zurückgegeben, sodass Sie auf die Werte zugreifen, indem Sie das Signal aufrufen: `content().title`.
246
+
247
+ ### (Optional) Schritt 6: Ändern der Sprache Ihrer Inhalte
248
+
249
+ Um die Sprache Ihrer Inhalte zu ändern, können Sie die Funktion `setLocale` verwenden, die von der Funktion `useLocale` bereitgestellt wird. Dies ermöglicht es Ihnen, die Locale der Anwendung festzulegen und den Inhalt entsprechend zu aktualisieren.
250
+
251
+ Erstellen Sie eine Komponente zum Umschalten zwischen den Sprachen:
252
+
253
+ ```typescript fileName="src/app/locale-switcher.component.ts"
254
+ import { Component } from "@angular/core";
255
+ import { CommonModule } from "@angular/common";
256
+ import { useLocale } from "angular-intlayer";
257
+
258
+ @Component({
259
+ selector: "app-locale-switcher",
260
+ standalone: true,
261
+ imports: [CommonModule],
262
+ template: `
263
+ <div class="locale-switcher">
264
+ <select
265
+ [value]="locale()"
266
+ (change)="setLocale($any($event.target).value)"
267
+ >
268
+ @for (loc of availableLocales; track loc) {
269
+ <option [value]="loc">{{ loc }}</option>
270
+ }
271
+ </select>
272
+ </div>
273
+ `,
274
+ styles: [
275
+ `
276
+ .locale-switcher {
277
+ margin: 1rem;
278
+ padding: 0.5rem;
279
+ border: 1px solid #ccc;
280
+ border-radius: 4px;
281
+ width: fit-content;
282
+ }
283
+ `,
284
+ ],
285
+ })
286
+ export class LocaleSwitcherComponent {
287
+ localeCtx = useLocale();
288
+
289
+ locale = this.localeCtx.locale;
290
+ availableLocales = this.localeCtx.availableLocales;
291
+ setLocale = this.localeCtx.setLocale;
292
+ }
293
+ ```
294
+
295
+ Verwenden Sie diese Komponente dann in Ihren Seiten:
296
+
297
+ ```typescript fileName="src/app/pages/index.page.ts"
298
+ import { Component } from "@angular/core";
299
+ import { useIntlayer } from "angular-intlayer";
300
+ import { LocaleSwitcherComponent } from "../locale-switcher.component";
301
+
302
+ @Component({
303
+ selector: "app-home",
304
+ standalone: true,
305
+ imports: [LocaleSwitcherComponent],
306
+ template: `
307
+ <app-locale-switcher></app-locale-switcher>
308
+ <div class="content">
309
+ <h1>{{ content().title }}</h1>
310
+ <p>{{ content().congratulations }}</p>
311
+ </div>
312
+ `,
313
+ })
314
+ export default class HomeComponent {
315
+ content = useIntlayer("app");
316
+ }
317
+ ```
318
+
319
+ ### TypeScript konfigurieren
320
+
321
+ Intlayer verwendet Modul-Augmentation, um die Vorteile von TypeScript zu nutzen und Ihre Codebasis robuster zu machen.
322
+
323
+ ![Autovervollständigung](https://github.com/aymericzip/intlayer/blob/main/docs/assets/autocompletion.png?raw=true)
324
+
325
+ ![Übersetzungsfehler](https://github.com/aymericzip/intlayer/blob/main/docs/assets/translation_error.png?raw=true)
326
+
327
+ Stellen Sie sicher, dass Ihre TypeScript-Konfiguration die automatisch generierten Typen enthält.
328
+
329
+ ```json5 fileName="tsconfig.json"
330
+ {
331
+ // ... Ihre bestehenden TypeScript-Konfigurationen
332
+ "include": [
333
+ // ... Ihre bestehenden TypeScript-Konfigurationen
334
+ ".intlayer/**/*.ts", // Fügen Sie die automatisch generierten Typen hinzu
335
+ ],
336
+ }
337
+ ```
338
+
339
+ ### Git-Konfiguration
340
+
341
+ Es wird empfohlen, die von Intlayer generierten Dateien zu ignorieren. Dies ermöglicht es Ihnen, sie nicht in Ihr Git-Repository zu übertragen.
342
+
343
+ Dazu können Sie die folgenden Anweisungen zu Ihrer `.gitignore`-Datei hinzufügen:
344
+
345
+ ```plaintext
346
+ # Von Intlayer generierte Dateien ignorieren
347
+ .intlayer
348
+ ```
349
+
350
+ ### VS Code Erweiterung
351
+
352
+ Um Ihre Entwicklungserfahrung mit Intlayer zu verbessern, können Sie die offizielle **Intlayer VS Code Erweiterung** installieren.
353
+
354
+ [Installation über den VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=intlayer.intlayer-vs-code-extension)
355
+
356
+ Diese Erweiterung bietet:
357
+
358
+ - **Autovervollständigung** für Übersetzungsschlüssel.
359
+ - **Fehlererkennung in Echtzeit** für fehlende Übersetzungen.
360
+ - **Inline-Vorschau** von übersetzten Inhalten.
361
+ - **Schnellaktionen**, um Übersetzungen einfach zu erstellen und zu aktualisieren.
362
+
363
+ Weitere Informationen zur Verwendung der Erweiterung finden Sie in der [Dokumentation zur Intlayer VS Code Erweiterung](https://intlayer.org/doc/vs-code-extension).
364
+
365
+ ---
366
+
367
+ ### Weiterführende Informationen
368
+
369
+ Um weiter zu gehen, können Sie den [visuellen Editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/de/intlayer_visual_editor.md) implementieren oder Ihre Inhalte mit dem [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/de/intlayer_CMS.md) externalisieren.
@@ -166,30 +166,25 @@ Um Intlayer in die Angular CLI zu integrieren, müssen Sie einen benutzerdefinie
166
166
 
167
167
  Ändern Sie zunächst Ihre `angular.json`, um den benutzerdefinierten Webpack-Builder zu verwenden. Aktualisieren Sie die `build`- und `serve`-Konfigurationen:
168
168
 
169
- ```json fileName="angular.json"
169
+ ```json5 fileName="angular.json"
170
170
  {
171
171
  "projects": {
172
172
  "ihr-app-name": {
173
173
  "architect": {
174
174
  "build": {
175
- "builder": "@angular-builders/custom-webpack:browser",
175
+ "builder": "@angular-builders/custom-webpack:browser", // replace "@angular-devkit/build-angular:application",
176
176
  "options": {
177
177
  "customWebpackConfig": {
178
- "path": "./webpack.config.ts"
179
- }
180
- }
178
+ "path": "./webpack.config.ts",
179
+ "mergeStrategies": { "module.rules": "prepend" },
180
+ },
181
+ "main": "src/main.ts", // replace "browser": "src/main.ts",
182
+ // ...
183
+ },
181
184
  },
182
- "serve": {
183
- "builder": "@angular-builders/custom-webpack:dev-server",
184
- "options": {
185
- "customWebpackConfig": {
186
- "path": "./webpack.config.ts"
187
- }
188
- }
189
- }
190
- }
191
- }
192
- }
185
+ },
186
+ },
187
+ },
193
188
  }
194
189
  ```
195
190
 
@@ -33,7 +33,7 @@ Der `useIntlayer`-Hook ermöglicht es, lokalisierten Inhalt aus einem Wörterbuc
33
33
  import { useIntlayer } from "solid-intlayer";
34
34
 
35
35
  const MyComponent = () => {
36
- const content = useIntlayer("my_dictionary_key");
36
+ const content = useIntlayer("my-dictionary-key");
37
37
 
38
38
  return (
39
39
  <div>
@@ -0,0 +1,53 @@
1
+ ---
2
+ createdAt: 2026-02-09
3
+ updatedAt: 2026-02-09
4
+ title: Agent Skills
5
+ description: Learn how to use Intlayer Agent Skills to improve your AI agent's understanding of your project.
6
+ keywords:
7
+ - Intlayer
8
+ - Agent Skills
9
+ - AI Agent
10
+ - Internationalization
11
+ - Documentation
12
+ slugs:
13
+ - doc
14
+ - agent_skills
15
+ history:
16
+ - version: 8.0.4
17
+ date: 2026-02-09
18
+ changes: Init history
19
+ ---
20
+
21
+ ## The `intlayer init skills` Command
22
+
23
+ The `intlayer init skills` command is the easiest way to set up agent skills in your project. It detects your environment and installs the necessary configuration files for your preferred platforms.
24
+
25
+ ```bash
26
+ npx intlayer init skills
27
+ ```
28
+
29
+ When you run this command, it will:
30
+
31
+ 1. Detect the framework you are using (e.g., Next.js, React, Vite).
32
+ 2. Ask you which platforms you want to install skills for (Cursor, VS Code, OpenCode, Claude Code, etc.).
33
+ 3. Generate the required configuration files (such as `.cursor/mcp.json`, `.vscode/mcp.json`, or `.intlayer/skills/*.md`).
34
+
35
+ ## Supported Platforms
36
+
37
+ Intlayer supports integration with the following platforms:
38
+
39
+ ### 1. Cursor
40
+
41
+ Cursor supports MCP (Model Context Protocol) servers. Running `intlayer init skills` will create a `.cursor/mcp.json` file that allows Cursor to communicate with the Intlayer MCP server.
42
+
43
+ ### 2. VS Code
44
+
45
+ For VS Code users, especially those using GitHub Copilot or other MCP-compatible extensions, the command creates a `.vscode/mcp.json` configuration.
46
+
47
+ ### 3. OpenCode
48
+
49
+ OpenCode is an interactive CLI agent designed for software engineering tasks. Intlayer provides specific skills to help OpenCode assist you with internationalization tasks.
50
+
51
+ ### 4. Claude Code
52
+
53
+ Claude Code can be configured to use Intlayer skills by adding the generated configurations to its desktop or CLI settings.
@@ -86,6 +86,7 @@ npx intlayer doc translate
86
86
  - **`--temperature [temperature]`**: Temperature setting for the AI model.
87
87
  - **`--api-key [apiKey]`**: Provide your own API key for the AI service.
88
88
  - **`--application-context [applicationContext]`**: Provide additional context for the AI translation.
89
+ - **`--data-serialization [dataSerialization]`**: The data serialization format to use for the AI features of Intlayer. Options: `json` (standard, reliable), `toon` (fewer tokens, less consistent).
89
90
  - **`--custom-prompt [prompt]`**: Customize the base prompt used for translation. (Note: For most use cases, the `--custom-instructions` option is recommended instead as it provides better control over translation behavior.)
90
91
 
91
92
  > Example: `npx intlayer doc translate --model deepseek-chat --provider deepseek --temperature 0.5 --api-key sk-1234567890 --application-context "My application is a cat store"`
@@ -126,6 +126,7 @@ Affected dictionary keys for processing: app, comp-test, hello-world, lang-switc
126
126
  - **`--api-key [apiKey]`**: Provide your own API key for the AI service.
127
127
  - **`--custom-prompt [prompt]`**: Provide a custom prompt for your translation instructions.
128
128
  - **`--application-context [applicationContext]`**: Provide additional context for the AI translation.
129
+ - **`--data-serialization [dataSerialization]`**: The data serialization format to use for the AI features of Intlayer. Options: `json` (standard, reliable), `toon` (fewer tokens, less consistent).
129
130
 
130
131
  > Example: `npx intlayer fill --model gpt-3.5-turbo --provider openai --temperature 0.5 --api-key sk-1234567890 --application-context "My application is a cat store"`
131
132
 
@@ -14,6 +14,9 @@ slugs:
14
14
  - concept
15
15
  - configuration
16
16
  history:
17
+ - version: 8.0.5
18
+ date: 2026-02-06
19
+ changes: Add `dataSerialization` to the AI configuration
17
20
  - version: 8.0.0
18
21
  date: 2026-01-24
19
22
  changes: Rename `live` import mode to `fetch` to better describe the underlying mechanism.
@@ -335,6 +338,17 @@ const config: IntlayerConfig = {
335
338
  * Base URL for the AI API.
336
339
  */
337
340
  baseURL: "http://localhost:3000",
341
+
342
+ /**
343
+ * Data serialization
344
+ *
345
+ * Options:
346
+ * - "json": Standard, reliable; uses more tokens.
347
+ * - "toon": Fewer tokens, less consistent than JSON.
348
+ *
349
+ * Default: "json"
350
+ */
351
+ dataSerialization: "json",
338
352
  },
339
353
 
340
354
  /**
@@ -1064,7 +1078,13 @@ Intlayer supports multiple AI providers for enhanced flexibility and choice. Cur
1064
1078
  - _Example_: `'http://localhost:5000'`
1065
1079
  - _Note_: Can be used to point to a local, or custom AI API endpoint.
1066
1080
 
1067
- > If you provide additional parameters, Intlayer will pass them to the AI model as context. It can be used to customize the reasoning effort, text verbosity, etc
1081
+ - **dataSerialization**:
1082
+ - _Type_: `'json' | 'toon'`
1083
+ - _Default_: `'json'`
1084
+ - _Description_: The data serialization format to use for the AI features of Intlayer.
1085
+ - _Example_: `'toon'`
1086
+ - _Note_: `json`: Standard, reliable; uses more tokens. `toon`: Fewer tokens, less consistent than JSON.
1087
+ > If you provide additional parameters, Intlayer will pass them to the AI model as context. It can be used to customize the reasoning effort, text verbosity, etc
1068
1088
 
1069
1089
  ### Build Configuration
1070
1090
 
@@ -14,20 +14,14 @@ slugs:
14
14
  - doc
15
15
  - environment
16
16
  - analog
17
- applicationTemplate: https://github.com/aymericzip/intlayer/tree/main/examples/vite-analog-app
17
+ applicationTemplate: https://github.com/aymericzip/intlayer/tree/main/examples/analog-app-template
18
18
  history:
19
- - version: 8.0.0
19
+ - version: 8.0.4
20
20
  date: 2026-01-26
21
- changes: Release stable version
22
- - version: 8.0.0
23
- date: 2025-12-30
24
- changes: Add init command
25
- - version: 5.5.10
26
- date: 2025-06-29
27
21
  changes: Init history
28
22
  ---
29
23
 
30
- # Translate your Analog app using Intlayer | Internationalization (i18n)
24
+ # Translate your Analog (Angular) app using Intlayer | Internationalization (i18n)
31
25
 
32
26
  ## Table of Contents
33
27
 
@@ -62,7 +56,7 @@ With Intlayer, you can:
62
56
  </Tab>
63
57
  </Tabs>
64
58
 
65
- See [Application Template](https://github.com/aymericzip/intlayer/tree/main/examples/vite-analog-app) on GitHub.
59
+ See [Application Template](https://github.com/aymericzip/intlayer/tree/main/examples/analog-app-template) on GitHub.
66
60
 
67
61
  ### Step 1: Install Dependencies
68
62
 
@@ -373,5 +367,3 @@ For more details on how to use the extension, refer to the [Intlayer VS Code Ext
373
367
  ### Go Further
374
368
 
375
369
  To go further, you can implement the [visual editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_visual_editor.md) or externalize your content using the [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_CMS.md).
376
-
377
- ---
@@ -169,30 +169,28 @@ To integrate Intlayer with the Angular CLI, you need to use a custom builder. Th
169
169
 
170
170
  First, modify your `angular.json` to use the custom Webpack builder. Update the `build` and `serve` configurations:
171
171
 
172
- ```json fileName="angular.json"
172
+ ```json5 fileName="angular.json"
173
173
  {
174
174
  "projects": {
175
175
  "your-app-name": {
176
176
  "architect": {
177
177
  "build": {
178
- "builder": "@angular-builders/custom-webpack:browser",
178
+ "builder": "@angular-builders/custom-webpack:browser", // replace "@angular-devkit/build-angular:application",
179
179
  "options": {
180
180
  "customWebpackConfig": {
181
- "path": "./webpack.config.ts"
182
- }
183
- }
181
+ "path": "./webpack.config.ts",
182
+ "mergeStrategies": { "module.rules": "prepend" },
183
+ },
184
+ "main": "src/main.ts", // replace "browser": "src/main.ts",
185
+ // ...
186
+ },
184
187
  },
185
188
  "serve": {
186
- "builder": "@angular-builders/custom-webpack:dev-server",
187
- "options": {
188
- "customWebpackConfig": {
189
- "path": "./webpack.config.ts"
190
- }
191
- }
192
- }
193
- }
194
- }
195
- }
189
+ "builder": "@angular-builders/custom-webpack:dev-server", // replace "@angular-devkit/build-angular:dev-server",
190
+ },
191
+ },
192
+ },
193
+ },
196
194
  }
197
195
  ```
198
196
 
@@ -31,7 +31,7 @@ The `useIntlayer` hook allows you to retrieve localized content from a dictionar
31
31
  import { useIntlayer } from "react-intlayer";
32
32
 
33
33
  const MyComponent = () => {
34
- const content = useIntlayer("my_dictionary_key");
34
+ const content = useIntlayer("my-dictionary-key");
35
35
 
36
36
  return (
37
37
  <div>
@@ -33,7 +33,7 @@ The `useIntlayer` hook allows you to retrieve localized content from a dictionar
33
33
  import { useIntlayer } from "solid-intlayer";
34
34
 
35
35
  const MyComponent = () => {
36
- const content = useIntlayer("my_dictionary_key");
36
+ const content = useIntlayer("my-dictionary-key");
37
37
 
38
38
  return (
39
39
  <div>
@@ -86,6 +86,7 @@ npx intlayer doc translate
86
86
  - **`--temperature [temperature]`**: Temperature setting for the AI model.
87
87
  - **`--api-key [apiKey]`**: Provide your own API key for the AI service.
88
88
  - **`--application-context [applicationContext]`**: Provide additional context for the AI translation.
89
+ - **`--data-serialization [dataSerialization]`**: The data serialization format to use for the AI features of Intlayer. Options: `json` (standard, reliable), `toon` (fewer tokens, less consistent).
89
90
  - **`--custom-prompt [prompt]`**: Customise the base prompt used for translation. (Note: For most use cases, the `--custom-instructions` option is recommended instead as it provides better control over translation behaviour.)
90
91
 
91
92
  > Example: `npx intlayer doc translate --model deepseek-chat --provider deepseek --temperature 0.5 --api-key sk-1234567890 --application-context "My application is a cat store"`
@@ -126,6 +126,7 @@ Affected dictionary keys for processing: app, comp-test, hello-world, lang-switc
126
126
  - **`--api-key [apiKey]`**: Provide your own API key for the AI service.
127
127
  - **`--custom-prompt [prompt]`**: Provide a custom prompt for your translation instructions.
128
128
  - **`--application-context [applicationContext]`**: Provide additional context for the AI translation.
129
+ - **`--data-serialization [dataSerialization]`**: The data serialization format to use for the AI features of Intlayer. Options: `json` (standard, reliable), `toon` (fewer tokens, less consistent).
129
130
 
130
131
  > Example: `npx intlayer fill --model gpt-3.5-turbo --provider openai --temperature 0.5 --api-key sk-1234567890 --application-context "My application is a cat store"`
131
132