@intlayer/docs 8.4.0 → 8.4.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.
Files changed (140) hide show
  1. package/blog/ar/per-component_vs_centralized_i18n.md +1 -1
  2. package/blog/de/i18n_using_next-i18next.md +1 -1
  3. package/blog/de/i18n_using_next-intl.md +1 -1
  4. package/blog/de/per-component_vs_centralized_i18n.md +1 -1
  5. package/blog/en/___per-component_vs_centralized_i18n.md +1 -1
  6. package/blog/en/per-component_vs_centralized_i18n.md +1 -1
  7. package/blog/en-GB/per-component_vs_centralized_i18n.md +1 -1
  8. package/blog/es/per-component_vs_centralized_i18n.md +1 -1
  9. package/blog/fr/i18n_using_next-i18next.md +1 -1
  10. package/blog/fr/i18n_using_next-intl.md +1 -1
  11. package/blog/fr/per-component_vs_centralized_i18n.md +1 -1
  12. package/blog/hi/i18n_using_next-i18next.md +1 -1
  13. package/blog/hi/i18n_using_next-intl.md +1 -1
  14. package/blog/hi/per-component_vs_centralized_i18n.md +1 -1
  15. package/blog/id/per-component_vs_centralized_i18n.md +1 -1
  16. package/blog/ja/per-component_vs_centralized_i18n.md +1 -1
  17. package/blog/ko/i18n_using_next-i18next.md +1 -1
  18. package/blog/ko/i18n_using_next-intl.md +1 -1
  19. package/blog/ko/per-component_vs_centralized_i18n.md +1 -1
  20. package/blog/pl/per-component_vs_centralized_i18n.md +1 -1
  21. package/blog/pt/per-component_vs_centralized_i18n.md +1 -1
  22. package/blog/ru/per-component_vs_centralized_i18n.md +1 -1
  23. package/blog/tr/i18n_using_next-i18next.md +1 -1
  24. package/blog/tr/i18n_using_next-intl.md +1 -1
  25. package/blog/tr/per-component_vs_centralized_i18n.md +1 -1
  26. package/blog/uk/per-component_vs_centralized_i18n.md +2 -2
  27. package/blog/vi/per-component_vs_centralized_i18n.md +1 -1
  28. package/dist/cjs/blog.cjs +1 -1
  29. package/dist/cjs/blog.cjs.map +1 -1
  30. package/dist/cjs/common-a-l0ULP6.cjs +2 -0
  31. package/dist/cjs/common-a-l0ULP6.cjs.map +1 -0
  32. package/dist/cjs/common.cjs +1 -2
  33. package/dist/cjs/doc.cjs +1 -1
  34. package/dist/cjs/doc.cjs.map +1 -1
  35. package/dist/cjs/frequentQuestions.cjs +1 -1
  36. package/dist/cjs/frequentQuestions.cjs.map +1 -1
  37. package/dist/cjs/generated/blog.entry.cjs +1 -1
  38. package/dist/cjs/generated/blog.entry.cjs.map +1 -1
  39. package/dist/cjs/generated/docs.entry.cjs +1 -1
  40. package/dist/cjs/generated/docs.entry.cjs.map +1 -1
  41. package/dist/cjs/generated/frequentQuestions.entry.cjs +1 -1
  42. package/dist/cjs/generated/frequentQuestions.entry.cjs.map +1 -1
  43. package/dist/cjs/generated/legal.entry.cjs +1 -1
  44. package/dist/cjs/generated/legal.entry.cjs.map +1 -1
  45. package/dist/cjs/legal.cjs +1 -1
  46. package/dist/cjs/legal.cjs.map +1 -1
  47. package/dist/types/blog.d.ts +2 -2
  48. package/dist/types/blog.entry-D5IgxPXY.d.ts +35 -0
  49. package/dist/types/blog.entry-D5IgxPXY.d.ts.map +1 -0
  50. package/dist/types/common-B45TZvLQ.d.ts +37 -0
  51. package/dist/types/common-B45TZvLQ.d.ts.map +1 -0
  52. package/dist/types/common.d.ts +2 -37
  53. package/dist/types/doc.d.ts +2 -2
  54. package/dist/types/docs.entry-CergjAYt.d.ts +157 -0
  55. package/dist/types/docs.entry-CergjAYt.d.ts.map +1 -0
  56. package/dist/types/frequentQuestions.d.ts +2 -2
  57. package/dist/types/frequentQuestions.entry-BHglVS-U.d.ts +24 -0
  58. package/dist/types/frequentQuestions.entry-BHglVS-U.d.ts.map +1 -0
  59. package/dist/types/generated/blog.entry.d.ts +2 -35
  60. package/dist/types/generated/docs.entry.d.ts +2 -157
  61. package/dist/types/generated/frequentQuestions.entry.d.ts +2 -24
  62. package/dist/types/generated/legal.entry.d.ts +2 -10
  63. package/dist/types/legal.d.ts +2 -2
  64. package/dist/types/legal.entry-B5Lg5eeH.d.ts +10 -0
  65. package/dist/types/legal.entry-B5Lg5eeH.d.ts.map +1 -0
  66. package/docs/ar/intlayer_with_adonisjs.md +3 -3
  67. package/docs/ar/intlayer_with_svelte_kit.md +5 -12
  68. package/docs/ar/intlayer_with_tanstack.md +3 -3
  69. package/docs/de/configuration.md +0 -5
  70. package/docs/de/intlayer_with_adonisjs.md +3 -3
  71. package/docs/de/intlayer_with_svelte_kit.md +5 -12
  72. package/docs/de/intlayer_with_tanstack.md +3 -3
  73. package/docs/en/configuration.md +0 -5
  74. package/docs/en/intlayer_with_adonisjs.md +3 -3
  75. package/docs/en/intlayer_with_svelte_kit.md +5 -12
  76. package/docs/en/intlayer_with_tanstack.md +3 -3
  77. package/docs/en-GB/configuration.md +0 -5
  78. package/docs/en-GB/intlayer_with_adonisjs.md +3 -3
  79. package/docs/en-GB/intlayer_with_svelte_kit.md +9 -10
  80. package/docs/en-GB/intlayer_with_tanstack.md +3 -3
  81. package/docs/es/configuration.md +0 -5
  82. package/docs/es/intlayer_with_adonisjs.md +3 -3
  83. package/docs/es/intlayer_with_svelte_kit.md +5 -12
  84. package/docs/es/intlayer_with_tanstack.md +3 -3
  85. package/docs/fr/configuration.md +0 -5
  86. package/docs/fr/intlayer_with_adonisjs.md +3 -3
  87. package/docs/fr/intlayer_with_svelte_kit.md +5 -12
  88. package/docs/hi/intlayer_with_adonisjs.md +3 -3
  89. package/docs/hi/intlayer_with_svelte_kit.md +5 -12
  90. package/docs/hi/intlayer_with_tanstack.md +3 -3
  91. package/docs/id/intlayer_with_adonisjs.md +3 -3
  92. package/docs/id/intlayer_with_svelte_kit.md +5 -12
  93. package/docs/id/intlayer_with_tanstack.md +3 -3
  94. package/docs/it/configuration.md +0 -5
  95. package/docs/it/intlayer_with_adonisjs.md +3 -3
  96. package/docs/it/intlayer_with_svelte_kit.md +5 -12
  97. package/docs/it/intlayer_with_tanstack.md +3 -3
  98. package/docs/ja/intlayer_with_adonisjs.md +3 -3
  99. package/docs/ko/intlayer_with_adonisjs.md +3 -3
  100. package/docs/ko/intlayer_with_svelte_kit.md +5 -12
  101. package/docs/ko/intlayer_with_tanstack.md +3 -3
  102. package/docs/pl/intlayer_with_svelte_kit.md +5 -12
  103. package/docs/pl/intlayer_with_tanstack.md +3 -3
  104. package/docs/pt/configuration.md +0 -5
  105. package/docs/pt/intlayer_with_adonisjs.md +3 -3
  106. package/docs/pt/intlayer_with_svelte_kit.md +5 -12
  107. package/docs/pt/intlayer_with_tanstack.md +3 -3
  108. package/docs/ru/configuration.md +0 -5
  109. package/docs/ru/intlayer_with_adonisjs.md +3 -3
  110. package/docs/ru/intlayer_with_svelte_kit.md +5 -12
  111. package/docs/ru/intlayer_with_tanstack.md +3 -3
  112. package/docs/ru/packages/intlayer/getCanonicalPath.md +1 -1
  113. package/docs/tr/intlayer_with_adonisjs.md +3 -3
  114. package/docs/tr/intlayer_with_svelte_kit.md +5 -12
  115. package/docs/tr/intlayer_with_tanstack.md +3 -3
  116. package/docs/uk/intlayer_with_adonisjs.md +3 -3
  117. package/docs/uk/intlayer_with_svelte_kit.md +5 -12
  118. package/docs/uk/intlayer_with_tanstack.md +3 -3
  119. package/docs/uk/packages/express-intlayer/t.md +1 -1
  120. package/docs/uk/packages/intlayer/getHTMLTextDir.md +1 -1
  121. package/docs/uk/packages/intlayer/getLocalizedUrl.md +1 -1
  122. package/docs/uk/packages/react-intlayer/t.md +1 -1
  123. package/docs/vi/intlayer_with_adonisjs.md +2 -2
  124. package/docs/vi/intlayer_with_svelte_kit.md +5 -12
  125. package/docs/vi/intlayer_with_tanstack.md +3 -3
  126. package/docs/zh/intlayer_with_adonisjs.md +3 -3
  127. package/docs/zh/intlayer_with_svelte_kit.md +5 -12
  128. package/docs/zh/intlayer_with_tanstack.md +3 -3
  129. package/frequent_questions/fr/error-vite-env-only.md +1 -1
  130. package/frequent_questions/id/error-vite-env-only.md +1 -1
  131. package/frequent_questions/pl/error-vite-env-only.md +1 -1
  132. package/frequent_questions/pt/error-vite-env-only.md +1 -1
  133. package/package.json +7 -7
  134. package/dist/cjs/_virtual/_rolldown/runtime.cjs +0 -1
  135. package/dist/cjs/common.cjs.map +0 -1
  136. package/dist/types/common.d.ts.map +0 -1
  137. package/dist/types/generated/blog.entry.d.ts.map +0 -1
  138. package/dist/types/generated/docs.entry.d.ts.map +0 -1
  139. package/dist/types/generated/frequentQuestions.entry.d.ts.map +0 -1
  140. package/dist/types/generated/legal.entry.d.ts.map +0 -1
@@ -14,7 +14,7 @@ slugs:
14
14
  - doc
15
15
  - environment
16
16
  - adonisjs
17
- applicationTemplate: https://github.com/aymericzip/intlayer-adonisjs-template
17
+ applicationTemplate: https://github.com/aymericzip/intlayer-adonis-template
18
18
  history:
19
19
  - version: 8.0.0
20
20
  date: 2025-12-30
@@ -42,14 +42,14 @@ Durch die Internationalisierung des Backends respektiert Ihre Anwendung nicht nu
42
42
  ## Erste Schritte
43
43
 
44
44
  <iframe
45
- src="https://stackblitz.com/github/aymericzip/intlayer-adonisjs-template?embed=1&ctl=1&file=intlayer.config.ts"
45
+ src="https://stackblitz.com/github/aymericzip/intlayer-adonis-template?embed=1&ctl=1&file=intlayer.config.ts"
46
46
  className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
47
47
  title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
48
48
  sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
49
49
  loading="lazy"
50
50
  />
51
51
 
52
- See [Application Template](https://github.com/aymericzip/intlayer-adonisjs-template) on GitHub.
52
+ See [Application Template](https://github.com/aymericzip/intlayer-adonis-template) on GitHub.
53
53
 
54
54
  ### Installation
55
55
 
@@ -494,14 +494,9 @@ export const getLocale = (event: RequestEvent): Locale => {
494
494
 
495
495
  Wenn die Locale nicht konfiguriert ist, möchten wir einen 404-Fehler zurückgeben. Um dies zu erleichtern, können wir eine `match`-Funktion erstellen, um zu überprüfen, ob die Locale gültig ist:
496
496
 
497
- ```ts fileName="/src/params/locale.ts"
498
- import { configuration, type Locale } from "intlayer";
499
-
500
- export const match = (
501
- param: Locale = configuration.internationalization.defaultLocale
502
- ): boolean => {
503
- return configuration.internationalization.locales.includes(param);
504
- };
497
+ ```ts fileName="/src/params/locale.ts"import { defaultLocale, locales, type Locale } from "intlayer";
498
+ export const match = (param: Locale = defaultLocale): boolean =>
499
+ locales.includes(param);
505
500
  ```
506
501
 
507
502
  > **Hinweis:** Stellen Sie sicher, dass Ihre `src/app.d.ts` die Locale-Definition enthält:
@@ -540,15 +535,13 @@ Erstellen Sie dann eine neue Seite und ein Layout unter der Gruppe `[[locale=loc
540
535
 
541
536
  ```ts fileName="src/routes/[[locale=locale]]/+layout.ts"
542
537
  import type { Load } from "@sveltejs/kit";
543
- import { configuration, type Locale } from "intlayer";
538
+ import { defaultLocale, type Locale } from "intlayer";
544
539
 
545
540
  export const prerender = true;
546
541
 
547
542
  // Verwenden Sie den generischen Load-Typ
548
543
  export const load: Load = ({ params }) => {
549
- const locale: Locale =
550
- (params.locale as Locale) ??
551
- configuration.internationalization.defaultLocale;
544
+ const locale: Locale = (params.locale as Locale) ?? defaultLocale;
552
545
 
553
546
  return {
554
547
  locale,
@@ -24,13 +24,13 @@ history:
24
24
  changes: Init-Befehl hinzufügen
25
25
  - version: 7.4.0
26
26
  date: 2025-12-11
27
- changes: Einführung von validatePrefix und Hinzufügen von Schritt 14: Behandlung von 404-Seiten mit lokalisierten Routen.
27
+ changes: "Einführung von validatePrefix und Hinzufügen von Schritt 14: Behandlung von 404-Seiten mit lokalisierten Routen."
28
28
  - version: 7.3.9
29
29
  date: 2025-12-05
30
- changes: Schritt 13 hinzugefügt: Abrufen der Locale in Ihren Serveraktionen (Optional)
30
+ changes: "Schritt 13 hinzugefügt: Abrufen der Locale in Ihren Serveraktionen (Optional)"
31
31
  - version: 7.2.3
32
32
  date: 2025-11-18
33
- changes: Schritt 13 hinzugefügt: Nitro anpassen
33
+ changes: "Schritt 13 hinzugefügt: Nitro anpassen"
34
34
  - version: 7.1.0
35
35
  date: 2025-11-17
36
36
  changes: Präfix-Standard durch Hinzufügen der getPrefix-Funktion, useLocalizedNavigate, LocaleSwitcher und LocalizedLink korrigiert.
@@ -1024,11 +1024,6 @@ Settings related to internal paths and output results of Intlayer. These setting
1024
1024
  - _Default_: `'.intlayer/cache'`
1025
1025
  - _Description_: The directory where the cache files are stored.
1026
1026
 
1027
- - **outputFilesPatternWithPath**:
1028
- - _Type_: `string`
1029
- - _Default_: `'{{dictionariesDir}}/**/*.json'`
1030
- - _Description_: Pattern for output files including the relative path.
1031
-
1032
1027
  ### Dictionary Configuration
1033
1028
 
1034
1029
  Settings that control dictionary operations, including auto-fill behavior and content generation.
@@ -14,7 +14,7 @@ slugs:
14
14
  - doc
15
15
  - environment
16
16
  - adonisjs
17
- applicationTemplate: https://github.com/aymericzip/intlayer-adonisjs-template
17
+ applicationTemplate: https://github.com/aymericzip/intlayer-adonis-template
18
18
  history:
19
19
  - version: 8.0.0
20
20
  date: 2025-12-30
@@ -42,14 +42,14 @@ By internationalizing the backend, your application not only respects cultural d
42
42
  ## Getting Started
43
43
 
44
44
  <iframe
45
- src="https://stackblitz.com/github/aymericzip/intlayer-adonisjs-template?embed=1&ctl=1&file=intlayer.config.ts"
45
+ src="https://stackblitz.com/github/aymericzip/intlayer-adonis-template?embed=1&ctl=1&file=intlayer.config.ts"
46
46
  className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
47
47
  title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
48
48
  sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
49
49
  loading="lazy"
50
50
  />
51
51
 
52
- See [Application Template](https://github.com/aymericzip/intlayer-adonisjs-template) on GitHub.
52
+ See [Application Template](https://github.com/aymericzip/intlayer-adonis-template) on GitHub.
53
53
 
54
54
  ### Installation
55
55
 
@@ -322,14 +322,9 @@ export const getLocale = (event: RequestEvent): Locale => {
322
322
 
323
323
  If the locale is not configured, we want to return a 404 error. To make it easier, we can create a `match` function to check if the locale is valid:
324
324
 
325
- ```ts fileName="/src/params/locale.ts"
326
- import { configuration, type Locale } from "intlayer";
327
-
328
- export const match = (
329
- param: Locale = configuration.internationalization.defaultLocale
330
- ): boolean => {
331
- return configuration.internationalization.locales.includes(param);
332
- };
325
+ ```ts fileName="/src/params/locale.ts"import { defaultLocale, locales, type Locale } from "intlayer";
326
+ export const match = (param: Locale = defaultLocale): boolean =>
327
+ locales.includes(param);
333
328
  ```
334
329
 
335
330
  > **Note:** Ensure your `src/app.d.ts` includes the locale definition:
@@ -368,15 +363,13 @@ Then, create a new page and layout under the `[[locale=locale]]` group:
368
363
 
369
364
  ```ts fileName="src/routes/[[locale=locale]]/+layout.ts"
370
365
  import type { Load } from "@sveltejs/kit";
371
- import { configuration, type Locale } from "intlayer";
366
+ import { defaultLocale, type Locale } from "intlayer";
372
367
 
373
368
  export const prerender = true;
374
369
 
375
370
  // Use the generic Load type
376
371
  export const load: Load = ({ params }) => {
377
- const locale: Locale =
378
- (params.locale as Locale) ??
379
- configuration.internationalization.defaultLocale;
372
+ const locale: Locale = (params.locale as Locale) ?? defaultLocale;
380
373
 
381
374
  return {
382
375
  locale,
@@ -24,13 +24,13 @@ history:
24
24
  changes: Add init command
25
25
  - version: 7.4.0
26
26
  date: 2025-12-11
27
- changes: Introduce validatePrefix and add step 14: Handling 404 pages with localized routes.
27
+ changes: Introduce validatePrefix and add step 14 - Handling 404 pages with localized routes.
28
28
  - version: 7.3.9
29
29
  date: 2025-12-05
30
- changes: Add step 13: Retrieve the locale in your server actions (Optional)
30
+ changes: Add step 13 - Retrieve the locale in your server actions (Optional)
31
31
  - version: 7.2.3
32
32
  date: 2025-11-18
33
- changes: Add step 13: Adapt Nitro
33
+ changes: Add step 13 - Adapt Nitro
34
34
  - version: 7.1.0
35
35
  date: 2025-11-17
36
36
  changes: Fix prefix default by adding getPrefix function useLocalizedNavigate, LocaleSwitcher and LocalizedLink.
@@ -859,11 +859,6 @@ Settings related to internal paths and output results of Intlayer. These setting
859
859
  - _Default_: `'.intlayer/cache'`
860
860
  - _Description_: The directory where the cache files are stored.
861
861
 
862
- - **outputFilesPatternWithPath**:
863
- - _Type_: `string`
864
- - _Default_: `'{{dictionariesDir}}/**/*.json'`
865
- - _Description_: Pattern for output files including the relative path.
866
-
867
862
  ### Dictionary Configuration
868
863
 
869
864
  Settings that control dictionary operations, including auto-fill behaviour and content generation.
@@ -14,7 +14,7 @@ slugs:
14
14
  - doc
15
15
  - environment
16
16
  - adonisjs
17
- applicationTemplate: https://github.com/aymericzip/intlayer-adonisjs-template
17
+ applicationTemplate: https://github.com/aymericzip/intlayer-adonis-template
18
18
  history:
19
19
  - version: 8.0.0
20
20
  date: 2025-12-30
@@ -42,14 +42,14 @@ By internationalising the backend, your application not only respects cultural d
42
42
  ## Getting Started
43
43
 
44
44
  <iframe
45
- src="https://stackblitz.com/github/aymericzip/intlayer-adonisjs-template?embed=1&ctl=1&file=intlayer.config.ts"
45
+ src="https://stackblitz.com/github/aymericzip/intlayer-adonis-template?embed=1&ctl=1&file=intlayer.config.ts"
46
46
  className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
47
47
  title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
48
48
  sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
49
49
  loading="lazy"
50
50
  />
51
51
 
52
- See [Application Template](https://github.com/aymericzip/intlayer-adonisjs-template) on GitHub.
52
+ See [Application Template](https://github.com/aymericzip/intlayer-adonis-template) on GitHub.
53
53
 
54
54
  ### Installation
55
55
 
@@ -495,13 +495,10 @@ export const getLocale = (event: RequestEvent): Locale => {
495
495
  If the locale is not configured, we want to return a 404 error. To simplify this, we can create a `match` function to verify if the locale is valid:
496
496
 
497
497
  ```ts fileName="/src/params/locale.ts"
498
- import { configuration, type Locale } from "intlayer";
498
+ import { defaultLocale, locales, type Locale } from "intlayer";
499
499
 
500
- export const match = (
501
- param: Locale = configuration.internationalization.defaultLocale
502
- ): boolean => {
503
- return configuration.internationalization.locales.includes(param);
504
- };
500
+ export const match = (param: Locale = defaultLocale): boolean =>
501
+ locales.includes(param);
505
502
  ```
506
503
 
507
504
  > **Note:** Ensure your `src/app.d.ts` includes the locale definition:
@@ -540,15 +537,13 @@ Then, create a new page and layout under the `[[locale=locale]]` group:
540
537
 
541
538
  ```ts fileName="src/routes/[[locale=locale]]/+layout.ts"
542
539
  import type { Load } from "@sveltejs/kit";
543
- import { configuration, type Locale } from "intlayer";
540
+ import { defaultLocale, type Locale } from "intlayer";
544
541
 
545
542
  export const prerender = true;
546
543
 
547
544
  // Use the generic Load type
548
545
  export const load: Load = ({ params }) => {
549
- const locale: Locale =
550
- (params.locale as Locale) ??
551
- configuration.internationalization.defaultLocale;
546
+ const locale: Locale = (params.locale as Locale) ?? defaultLocale;
552
547
 
553
548
  return {
554
549
  locale,
@@ -748,3 +743,7 @@ It is recommended to ignore the files generated by Intlayer.
748
743
 
749
744
  - **Visual Editor**: Integrate the [Intlayer Visual Editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/intlayer_visual_editor.md) to edit translations directly from the UI.
750
745
  - **CMS**: Externalise your content management using the [Intlayer CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en-GB/intlayer_CMS.md).
746
+
747
+ ```
748
+
749
+ ```
@@ -24,13 +24,13 @@ history:
24
24
  changes: Add init command
25
25
  - version: 7.4.0
26
26
  date: 2025-12-11
27
- changes: Introduce validatePrefix and add step 14: Handling 404 pages with localised routes.
27
+ changes: "Introduce validatePrefix and add step 14: Handling 404 pages with localised routes."
28
28
  - version: 7.3.9
29
29
  date: 2025-12-05
30
- changes: Add step 13: Retrieve the locale in your server actions (Optional)
30
+ changes: "Add step 13: Retrieve the locale in your server actions (Optional)"
31
31
  - version: 7.2.3
32
32
  date: 2025-11-18
33
- changes: Add step 13: Adapt Nitro
33
+ changes: "Add step 13: Adapt Nitro"
34
34
  - version: 7.1.0
35
35
  date: 2025-11-17
36
36
  changes: Fix prefix default by adding getPrefix function useLocalizedNavigate, LocaleSwitcher and LocalisedLink.
@@ -1034,11 +1034,6 @@ Estructura de directorios y resultados de salida de Intlayer. Estas configuracio
1034
1034
  - _Por defecto_: `'.intlayer/cache'`
1035
1035
  - _Descripción_: El directorio donde se almacenan los archivos de caché.
1036
1036
 
1037
- - **outputFilesPatternWithPath**:
1038
- - _Tipo_: `string`
1039
- - _Por defecto_: `'{{dictionariesDir}}/**/*.json'`
1040
- - _Descripción_: Patrón para archivos de salida incluyendo la ruta relativa.
1041
-
1042
1037
  ### Configuración del diccionario
1043
1038
 
1044
1039
  Configuraciones que controlan las operaciones del diccionario, incluyendo el comportamiento de auto-relleno y la generación de contenido.
@@ -14,7 +14,7 @@ slugs:
14
14
  - doc
15
15
  - environment
16
16
  - adonisjs
17
- applicationTemplate: https://github.com/aymericzip/intlayer-adonisjs-template
17
+ applicationTemplate: https://github.com/aymericzip/intlayer-adonis-template
18
18
  history:
19
19
  - version: 8.0.0
20
20
  date: 2025-12-30
@@ -42,14 +42,14 @@ Al internacionalizar el backend, tu aplicación no solo respeta las diferencias
42
42
  ## Primeros Pasos
43
43
 
44
44
  <iframe
45
- src="https://stackblitz.com/github/aymericzip/intlayer-adonisjs-template?embed=1&ctl=1&file=intlayer.config.ts"
45
+ src="https://stackblitz.com/github/aymericzip/intlayer-adonis-template?embed=1&ctl=1&file=intlayer.config.ts"
46
46
  className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
47
47
  title="Demo CodeSandbox - Cómo internacionalizar tu aplicación usando Intlayer"
48
48
  sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
49
49
  loading="lazy"
50
50
  />
51
51
 
52
- Ver la [Plantilla de la Aplicación](https://github.com/aymericzip/intlayer-adonisjs-template) en GitHub.
52
+ Ver la [Plantilla de la Aplicación](https://github.com/aymericzip/intlayer-adonis-template) en GitHub.
53
53
 
54
54
  ### Instalación
55
55
 
@@ -494,14 +494,9 @@ export const getLocale = (event: RequestEvent): Locale => {
494
494
 
495
495
  Si la localidad no está configurada, queremos devolver un error 404. Para facilitarlo, podemos crear una función `match` para verificar si la localidad es válida:
496
496
 
497
- ```ts fileName="/src/params/locale.ts"
498
- import { configuration, type Locale } from "intlayer";
499
-
500
- export const match = (
501
- param: Locale = configuration.internationalization.defaultLocale
502
- ): boolean => {
503
- return configuration.internationalization.locales.includes(param);
504
- };
497
+ ```ts fileName="/src/params/locale.ts"import { defaultLocale, locales, type Locale } from "intlayer";
498
+ export const match = (param: Locale = defaultLocale): boolean =>
499
+ locales.includes(param);
505
500
  ```
506
501
 
507
502
  > **Nota:** Asegúrate de que tu `src/app.d.ts` incluya la definición de la localidad:
@@ -540,15 +535,13 @@ Luego, crea una nueva página y layout bajo el grupo `[[locale=locale]]`:
540
535
 
541
536
  ```ts fileName="src/routes/[[locale=locale]]/+layout.ts"
542
537
  import type { Load } from "@sveltejs/kit";
543
- import { configuration, type Locale } from "intlayer";
538
+ import { defaultLocale, type Locale } from "intlayer";
544
539
 
545
540
  export const prerender = true;
546
541
 
547
542
  // Usa el tipo genérico Load
548
543
  export const load: Load = ({ params }) => {
549
- const locale: Locale =
550
- (params.locale as Locale) ??
551
- configuration.internationalization.defaultLocale;
544
+ const locale: Locale = (params.locale as Locale) ?? defaultLocale;
552
545
 
553
546
  return {
554
547
  locale,
@@ -24,13 +24,13 @@ history:
24
24
  changes: Añadir comando init
25
25
  - version: 7.4.0
26
26
  date: 2025-12-11
27
- changes: Introducir validatePrefix y añadir el paso 14: Gestión de páginas 404 con rutas localizadas.
27
+ changes: "Introducir validatePrefix y añadir el paso 14: Gestión de páginas 404 con rutas localizadas."
28
28
  - version: 7.3.9
29
29
  date: 2025-12-05
30
- changes: Añadir el paso 13: Obtener la configuración regional en tus acciones del servidor (Opcional)
30
+ changes: "Añadir el paso 13: Obtener la configuración regional en tus acciones del servidor (Opcional)"
31
31
  - version: 7.2.3
32
32
  date: 2025-11-18
33
- changes: Añadir el paso 13: Adaptar Nitro
33
+ changes: "Añadir el paso 13: Adaptar Nitro"
34
34
  - version: 7.1.0
35
35
  date: 2025-11-17
36
36
  changes: Corregir prefijo por defecto añadiendo la función getPrefix, useLocalizedNavigate, LocaleSwitcher y LocalizedLink.
@@ -1035,11 +1035,6 @@ Paramètres liés aux chemins internes et aux résultats de sortie d'Intlayer. C
1035
1035
  - _Par défaut_ : `'.intlayer/cache'`
1036
1036
  - _Description_ : Le répertoire où sont stockés les fichiers de cache.
1037
1037
 
1038
- - **outputFilesPatternWithPath** :
1039
- - _Type_ : `string`
1040
- - _Par défaut_ : `'{{dictionariesDir}}/**/*.json'`
1041
- - _Description_ : Modèle pour les fichiers de sortie incluant le chemin relatif.
1042
-
1043
1038
  ### Configuration du dictionnaire
1044
1039
 
1045
1040
  Paramètres qui contrôlent les opérations du dictionnaire, y compris le comportement de remplissage automatique et la génération de contenu.
@@ -14,7 +14,7 @@ slugs:
14
14
  - doc
15
15
  - environment
16
16
  - adonisjs
17
- applicationTemplate: https://github.com/aymericzip/intlayer-adonisjs-template
17
+ applicationTemplate: https://github.com/aymericzip/intlayer-adonis-template
18
18
  history:
19
19
  - version: 8.0.0
20
20
  date: 2025-12-30
@@ -42,14 +42,14 @@ En internationalisant le backend, votre application non seulement respecte les d
42
42
  ## Commencer
43
43
 
44
44
  <iframe
45
- src="https://stackblitz.com/github/aymericzip/intlayer-adonisjs-template?embed=1&ctl=1&file=intlayer.config.ts"
45
+ src="https://stackblitz.com/github/aymericzip/intlayer-adonis-template?embed=1&ctl=1&file=intlayer.config.ts"
46
46
  className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
47
47
  title="Démo CodeSandbox - Comment internationaliser votre application avec Intlayer"
48
48
  sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
49
49
  loading="lazy"
50
50
  />
51
51
 
52
- Voir le [Modèle d’Application](https://github.com/aymericzip/intlayer-adonisjs-template) sur GitHub.
52
+ Voir le [Modèle d’Application](https://github.com/aymericzip/intlayer-adonis-template) sur GitHub.
53
53
 
54
54
  ### Installation
55
55
 
@@ -494,14 +494,9 @@ export const getLocale = (event: RequestEvent): Locale => {
494
494
 
495
495
  Si la locale n'est pas configurée, nous souhaitons retourner une erreur 404. Pour faciliter cela, nous pouvons créer une fonction `match` pour vérifier si la locale est valide :
496
496
 
497
- ```ts fileName="/src/params/locale.ts"
498
- import { configuration, type Locale } from "intlayer";
499
-
500
- export const match = (
501
- param: Locale = configuration.internationalization.defaultLocale
502
- ): boolean => {
503
- return configuration.internationalization.locales.includes(param);
504
- };
497
+ ```ts fileName="/src/params/locale.ts"import { defaultLocale, locales, type Locale } from "intlayer";
498
+ export const match = (param: Locale = defaultLocale): boolean =>
499
+ locales.includes(param);
505
500
  ```
506
501
 
507
502
  > **Note :** Assurez-vous que votre fichier `src/app.d.ts` inclut la définition de la locale :
@@ -540,15 +535,13 @@ Ensuite, créez une nouvelle page et un layout sous le groupe `[[locale=locale]]
540
535
 
541
536
  ```ts fileName="src/routes/[[locale=locale]]/+layout.ts"
542
537
  import type { Load } from "@sveltejs/kit";
543
- import { configuration, type Locale } from "intlayer";
538
+ import { defaultLocale, type Locale } from "intlayer";
544
539
 
545
540
  export const prerender = true;
546
541
 
547
542
  // Utilisez le type générique Load
548
543
  export const load: Load = ({ params }) => {
549
- const locale: Locale =
550
- (params.locale as Locale) ??
551
- configuration.internationalization.defaultLocale;
544
+ const locale: Locale = (params.locale as Locale) ?? defaultLocale;
552
545
 
553
546
  return {
554
547
  locale,
@@ -14,7 +14,7 @@ slugs:
14
14
  - doc
15
15
  - environment
16
16
  - adonisjs
17
- applicationTemplate: https://github.com/aymericzip/intlayer-adonisjs-template
17
+ applicationTemplate: https://github.com/aymericzip/intlayer-adonis-template
18
18
  history:
19
19
  - version: 8.0.0
20
20
  date: 2025-12-30
@@ -42,14 +42,14 @@ history:
42
42
  ## शुरू करना
43
43
 
44
44
  <iframe
45
- src="https://stackblitz.com/github/aymericzip/intlayer-adonisjs-template?embed=1&ctl=1&file=intlayer.config.ts"
45
+ src="https://stackblitz.com/github/aymericzip/intlayer-adonis-template?embed=1&ctl=1&file=intlayer.config.ts"
46
46
  className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
47
47
  title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
48
48
  sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
49
49
  loading="lazy"
50
50
  />
51
51
 
52
- See [Application Template](https://github.com/aymericzip/intlayer-adonisjs-template) on GitHub.
52
+ See [Application Template](https://github.com/aymericzip/intlayer-adonis-template) on GitHub.
53
53
 
54
54
  ### स्थापना
55
55
 
@@ -494,14 +494,9 @@ export const getLocale = (event: RequestEvent): Locale => {
494
494
 
495
495
  यदि locale कॉन्फ़िगर नहीं किया गया है, तो हम 404 त्रुटि लौटाना चाहते हैं। इसे आसान बनाने के लिए, हम एक `match` फ़ंक्शन बना सकते हैं जो जांचे कि locale मान्य है या नहीं:
496
496
 
497
- ```ts fileName="/src/params/locale.ts"
498
- import { configuration, type Locale } from "intlayer";
499
-
500
- export const match = (
501
- param: Locale = configuration.internationalization.defaultLocale
502
- ): boolean => {
503
- return configuration.internationalization.locales.includes(param);
504
- };
497
+ ```ts fileName="/src/params/locale.ts"import { defaultLocale, locales, type Locale } from "intlayer";
498
+ export const match = (param: Locale = defaultLocale): boolean =>
499
+ locales.includes(param);
505
500
  ```
506
501
 
507
502
  > **नोट:** सुनिश्चित करें कि आपकी `src/app.d.ts` में locale परिभाषा शामिल है:
@@ -540,15 +535,13 @@ export const match = (
540
535
 
541
536
  ```ts fileName="src/routes/[[locale=locale]]/+layout.ts"
542
537
  import type { Load } from "@sveltejs/kit";
543
- import { configuration, type Locale } from "intlayer";
538
+ import { defaultLocale, type Locale } from "intlayer";
544
539
 
545
540
  export const prerender = true;
546
541
 
547
542
  // सामान्य Load टाइप का उपयोग करें
548
543
  export const load: Load = ({ params }) => {
549
- const locale: Locale =
550
- (params.locale as Locale) ??
551
- configuration.internationalization.defaultLocale;
544
+ const locale: Locale = (params.locale as Locale) ?? defaultLocale;
552
545
 
553
546
  return {
554
547
  locale,
@@ -24,13 +24,13 @@ history:
24
24
  changes: init कमांड जोड़ें
25
25
  - version: 7.4.0
26
26
  date: 2025-12-11
27
- changes: validatePrefix पेश करें और चरण 14 जोड़ें: स्थानीयकृत रूट्स के साथ 404 पेज हैंडल करना।
27
+ changes: "validatePrefix पेश करें और चरण 14 जोड़ें: स्थानीयकृत रूट्स के साथ 404 पेज हैंडल करना।"
28
28
  - version: 7.3.9
29
29
  date: 2025-12-05
30
- changes: चरण 13 जोड़ें: अपने सर्वर एक्शन्स में लोकेल प्राप्त करें (वैकल्पिक)
30
+ changes: "चरण 13 जोड़ें: अपने सर्वर एक्शन्स में लोकेल प्राप्त करें (वैकल्पिक)"
31
31
  - version: 7.2.3
32
32
  date: 2025-11-18
33
- changes: चरण 13 जोड़ें: Nitro को अनुकूलित करें
33
+ changes: "चरण 13 जोड़ें: Nitro को अनुकूलित करें"
34
34
  - version: 7.1.0
35
35
  date: 2025-11-17
36
36
  changes: getPrefix फ़ंक्शन जोड़कर उपसर्ग डिफ़ॉल्ट को ठीक करें useLocalizedNavigate, LocaleSwitcher और LocalizedLink का उपयोग करें।
@@ -14,7 +14,7 @@ slugs:
14
14
  - doc
15
15
  - environment
16
16
  - adonisjs
17
- applicationTemplate: https://github.com/aymericzip/intlayer-adonisjs-template
17
+ applicationTemplate: https://github.com/aymericzip/intlayer-adonis-template
18
18
  history:
19
19
  - version: 8.0.0
20
20
  date: 2025-12-30
@@ -42,14 +42,14 @@ Dengan menginternasionalkan backend, aplikasi Anda tidak hanya menghormati perbe
42
42
  ## Memulai
43
43
 
44
44
  <iframe
45
- src="https://stackblitz.com/github/aymericzip/intlayer-adonisjs-template?embed=1&ctl=1&file=intlayer.config.ts"
45
+ src="https://stackblitz.com/github/aymericzip/intlayer-adonis-template?embed=1&ctl=1&file=intlayer.config.ts"
46
46
  className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
47
47
  title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
48
48
  sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
49
49
  loading="lazy"
50
50
  />
51
51
 
52
- Lihat [Application Template](https://github.com/aymericzip/intlayer-adonisjs-template) di GitHub.
52
+ Lihat [Application Template](https://github.com/aymericzip/intlayer-adonis-template) di GitHub.
53
53
 
54
54
  ### Instalasi
55
55
 
@@ -494,14 +494,9 @@ export const getLocale = (event: RequestEvent): Locale => {
494
494
 
495
495
  Jika locale tidak dikonfigurasi, kita ingin mengembalikan error 404. Untuk mempermudah, kita dapat membuat fungsi `match` untuk memeriksa apakah locale valid:
496
496
 
497
- ```ts fileName="/src/params/locale.ts"
498
- import { configuration, type Locale } from "intlayer";
499
-
500
- export const match = (
501
- param: Locale = configuration.internationalization.defaultLocale
502
- ): boolean => {
503
- return configuration.internationalization.locales.includes(param);
504
- };
497
+ ```ts fileName="/src/params/locale.ts"import { defaultLocale, locales, type Locale } from "intlayer";
498
+ export const match = (param: Locale = defaultLocale): boolean =>
499
+ locales.includes(param);
505
500
  ```
506
501
 
507
502
  > **Catatan:** Pastikan `src/app.d.ts` Anda menyertakan definisi locale:
@@ -540,15 +535,13 @@ Kemudian, buat halaman dan layout baru di bawah grup `[[locale=locale]]`:
540
535
 
541
536
  ```ts fileName="src/routes/[[locale=locale]]/+layout.ts"
542
537
  import type { Load } from "@sveltejs/kit";
543
- import { configuration, type Locale } from "intlayer";
538
+ import { defaultLocale, type Locale } from "intlayer";
544
539
 
545
540
  export const prerender = true;
546
541
 
547
542
  // Gunakan tipe Load generik
548
543
  export const load: Load = ({ params }) => {
549
- const locale: Locale =
550
- (params.locale as Locale) ??
551
- configuration.internationalization.defaultLocale;
544
+ const locale: Locale = (params.locale as Locale) ?? defaultLocale;
552
545
 
553
546
  return {
554
547
  locale,
@@ -24,13 +24,13 @@ history:
24
24
  changes: Tambahkan perintah init
25
25
  - version: 7.4.0
26
26
  date: 2025-12-11
27
- changes: Memperkenalkan validatePrefix dan menambah langkah 14: Menangani halaman 404 dengan rute terlokalisasi.
27
+ changes: "Memperkenalkan validatePrefix dan menambah langkah 14: Menangani halaman 404 dengan rute terlokalisasi."
28
28
  - version: 7.3.9
29
29
  date: 2025-12-05
30
- changes: Menambah langkah 13: Mengambil locale di server actions Anda (Opsional)
30
+ changes: "Menambah langkah 13: Mengambil locale di server actions Anda (Opsional)"
31
31
  - version: 7.2.3
32
32
  date: 2025-11-18
33
- changes: Menambah langkah 13: Adaptasi Nitro
33
+ changes: "Menambah langkah 13: Adaptasi Nitro"
34
34
  - version: 7.1.0
35
35
  date: 2025-11-17
36
36
  changes: Memperbaiki default prefix dengan menambahkan fungsi getPrefix, gunakan useLocalizedNavigate, LocaleSwitcher dan LocalizedLink.
@@ -1035,11 +1035,6 @@ Impostazioni relative ai percorsi interni e ai risultati di output di Intlayer.
1035
1035
  - _Predefinito_: `'.intlayer/cache'`
1036
1036
  - _Descrizione_: La directory dove sono memorizzati i file di cache.
1037
1037
 
1038
- - **outputFilesPatternWithPath**:
1039
- - _Tipo_: `string`
1040
- - _Predefinito_: `'{{dictionariesDir}}/**/*.json'`
1041
- - _Descrizione_: Pattern per i file di output incluso il percorso relativo.
1042
-
1043
1038
  ### Configurazione del dizionario
1044
1039
 
1045
1040
  Impostazioni che controllano le operazioni del dizionario, incluso il comportamento di auto-riempimento e la generazione di contenuti.