@intlayer/docs 8.3.0-canary.0 → 8.3.0-canary.1
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.
- package/docs/ar/configuration.md +22 -11
- package/docs/ar/intlayer_with_tanstack.md +22 -1
- package/docs/de/configuration.md +14 -11
- package/docs/de/intlayer_with_tanstack.md +22 -1
- package/docs/en/configuration.md +11 -8
- package/docs/en/intlayer_with_tanstack.md +23 -2
- package/docs/en-GB/configuration.md +11 -8
- package/docs/en-GB/intlayer_with_tanstack.md +22 -1
- package/docs/es/configuration.md +15 -12
- package/docs/es/intlayer_with_tanstack.md +22 -1
- package/docs/fr/configuration.md +14 -11
- package/docs/fr/intlayer_with_tanstack.md +22 -1
- package/docs/hi/configuration.md +22 -11
- package/docs/hi/intlayer_with_tanstack.md +22 -1
- package/docs/id/configuration.md +22 -11
- package/docs/id/intlayer_with_tanstack.md +22 -1
- package/docs/it/configuration.md +14 -11
- package/docs/it/intlayer_with_tanstack.md +22 -1
- package/docs/ja/configuration.md +22 -11
- package/docs/ja/intlayer_with_tanstack.md +22 -1
- package/docs/ko/configuration.md +22 -11
- package/docs/ko/intlayer_with_tanstack.md +22 -1
- package/docs/pl/configuration.md +25 -19
- package/docs/pl/intlayer_with_tanstack.md +22 -1
- package/docs/pt/configuration.md +14 -11
- package/docs/pt/intlayer_with_tanstack.md +22 -1
- package/docs/ru/configuration.md +14 -11
- package/docs/ru/intlayer_with_tanstack.md +22 -1
- package/docs/tr/configuration.md +25 -26
- package/docs/tr/intlayer_with_tanstack.md +22 -1
- package/docs/uk/configuration.md +25 -19
- package/docs/uk/intlayer_with_tanstack.md +22 -1
- package/docs/vi/configuration.md +51 -11
- package/docs/vi/intlayer_with_tanstack.md +22 -1
- package/docs/zh/configuration.md +25 -26
- package/docs/zh/intlayer_with_tanstack.md +22 -1
- package/package.json +8 -8
package/docs/ar/configuration.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2024-08-13
|
|
3
|
-
updatedAt: 2026-
|
|
3
|
+
updatedAt: 2026-03-11
|
|
4
4
|
title: التهيئة
|
|
5
5
|
description: تعلّم كيفية تهيئة Intlayer لتطبيقك. فهم الإعدادات والخيارات المختلفة المتاحة لتخصيص Intlayer حسب احتياجاتك.
|
|
6
6
|
keywords:
|
|
@@ -14,21 +14,24 @@ slugs:
|
|
|
14
14
|
- concept
|
|
15
15
|
- configuration
|
|
16
16
|
history:
|
|
17
|
+
- version: 8.3.0
|
|
18
|
+
data: 2026-03-11
|
|
19
|
+
changes: نقل 'baseDir' من تكوين 'content' إلى تكوين 'system'
|
|
17
20
|
- version: 8.2.0
|
|
18
21
|
date: 2026-03-09
|
|
19
|
-
changes:
|
|
22
|
+
changes: تحديث خيارات المترجم، وإضافة دعم لـ 'output' و 'noMetadata'
|
|
20
23
|
- version: 8.1.7
|
|
21
24
|
date: 2026-02-25
|
|
22
25
|
changes: تحديث خيارات المترجم
|
|
23
26
|
- version: 8.0.6
|
|
24
27
|
date: 2026-02-12
|
|
25
|
-
changes:
|
|
28
|
+
changes: إضافة دعم لمقدمي Open Router و Alibaba و Amazon و Google Vertex Bedrock و Fireworks و Groq و Hugging Face و Together.ai
|
|
26
29
|
- version: 8.0.5
|
|
27
30
|
date: 2026-02-06
|
|
28
31
|
changes: إضافة `dataSerialization` إلى تكوين الذكاء الاصطناعي
|
|
29
32
|
- version: 8.0.0
|
|
30
33
|
date: 2026-01-22
|
|
31
|
-
changes:
|
|
34
|
+
changes: نقل تكوين بناء importMode إلى تكوين القاموس.
|
|
32
35
|
- version: 8.0.0
|
|
33
36
|
date: 2026-01-18
|
|
34
37
|
changes: فصل تكوين النظام عن تكوين المحتوى. نقل المسارات الداخلية إلى خاصية `system`. إضافة `codeDir` لفصل ملفات المحتوى عن تحويل الكود.
|
|
@@ -735,13 +738,6 @@ export default config;
|
|
|
735
738
|
- _مثال_: `['.data.ts', '.data.js', '.data.json']`
|
|
736
739
|
- _ملاحظة_: تخصيص امتدادات الملفات يمكن أن يساعد في تجنب التعارضات.
|
|
737
740
|
|
|
738
|
-
- **baseDir**:
|
|
739
|
-
- _النوع_: `string`
|
|
740
|
-
- _الافتراضي_: `process.cwd()`
|
|
741
|
-
- _الوصف_: الدليل الأساسي للمشروع.
|
|
742
|
-
- _مثال_: `'/path/to/project'`
|
|
743
|
-
- _ملاحظة_: يُستخدم هذا لحل جميع الدلائل المتعلقة بـ Intlayer.
|
|
744
|
-
|
|
745
741
|
- **dictionaryOutput**:
|
|
746
742
|
- _النوع_: `string[]`
|
|
747
743
|
- _الافتراضي_: `['intlayer']`
|
|
@@ -810,6 +806,21 @@ export default config;
|
|
|
810
806
|
- _الوصف_: الأدلة المستبعدة من البحث في المحتوى.
|
|
811
807
|
- _ملاحظة_: هذا الإعداد غير مستخدم حالياً، لكنه مخطط لتطبيقه في المستقبل.
|
|
812
808
|
|
|
809
|
+
---
|
|
810
|
+
|
|
811
|
+
### تكوين النظام
|
|
812
|
+
|
|
813
|
+
الإعدادات المتعلقة بالمسارات الداخلية ونتائج الإخراج لـ Intlayer. عادة ما تكون هذه الإعدادات داخلية ولا يجب تعديلها من قبل المستخدم.
|
|
814
|
+
|
|
815
|
+
#### الخصائص
|
|
816
|
+
|
|
817
|
+
- **baseDir**:
|
|
818
|
+
- _النوع_: `string`
|
|
819
|
+
- _الافتراضي_: `process.cwd()`
|
|
820
|
+
- _الوصف_: الدليل الأساسي للمشروع.
|
|
821
|
+
- _مثال_: `'/path/to/project'`
|
|
822
|
+
- _ملاحظة_: يُستخدم هذا لحل جميع الدلائل المتعلقة بـ Intlayer.
|
|
823
|
+
|
|
813
824
|
### تكوين القاموس
|
|
814
825
|
|
|
815
826
|
الإعدادات التي تتحكم في عمليات القاموس، بما في ذلك سلوك التعبئة التلقائية وإنشاء المحتوى.
|
|
@@ -437,12 +437,33 @@ export const Route = createFileRoute("/{-$locale}/")({
|
|
|
437
437
|
component: RouteComponent,
|
|
438
438
|
head: ({ params }) => {
|
|
439
439
|
const { locale } = params;
|
|
440
|
+
const path = "/"; // The path for this route
|
|
441
|
+
|
|
440
442
|
const metaContent = getIntlayer("app", locale);
|
|
441
443
|
|
|
442
444
|
return {
|
|
445
|
+
links: [
|
|
446
|
+
// Canonical link: Points to the current localized page
|
|
447
|
+
{ rel: "canonical", href: getLocalizedUrl(path, locale) },
|
|
448
|
+
|
|
449
|
+
// Hreflang: Tell Google about all localized versions
|
|
450
|
+
...localeMap(({ locale: mapLocale }) => ({
|
|
451
|
+
rel: "alternate",
|
|
452
|
+
hrefLang: mapLocale,
|
|
453
|
+
href: getLocalizedUrl(path, mapLocale),
|
|
454
|
+
})),
|
|
455
|
+
|
|
456
|
+
// x-default: For users in unmatched languages
|
|
457
|
+
// Define the default fallback locale (usually your primary language)
|
|
458
|
+
{
|
|
459
|
+
rel: "alternate",
|
|
460
|
+
hrefLang: "x-default",
|
|
461
|
+
href: getLocalizedUrl(path, defaultLocale),
|
|
462
|
+
},
|
|
463
|
+
],
|
|
443
464
|
meta: [
|
|
444
465
|
{ title: metaContent.title },
|
|
445
|
-
{ content: metaContent.meta.description
|
|
466
|
+
{ name: "description", content: metaContent.meta.description },
|
|
446
467
|
],
|
|
447
468
|
};
|
|
448
469
|
},
|
package/docs/de/configuration.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2024-08-13
|
|
3
|
-
updatedAt: 2026-03-
|
|
3
|
+
updatedAt: 2026-03-11
|
|
4
4
|
title: Konfiguration
|
|
5
5
|
description: Erfahren Sie, wie Sie Intlayer für Ihre Anwendung konfigurieren. Verstehen Sie die verschiedenen Einstellungen und Optionen, um Intlayer an Ihre Bedürfnisse anzupassen.
|
|
6
6
|
keywords:
|
|
@@ -14,21 +14,24 @@ slugs:
|
|
|
14
14
|
- concept
|
|
15
15
|
- configuration
|
|
16
16
|
history:
|
|
17
|
+
- version: 8.3.0
|
|
18
|
+
data: 2026-03-11
|
|
19
|
+
changes: Verschiebe 'baseDir' von 'content' nach 'system' Konfiguration
|
|
17
20
|
- version: 8.2.0
|
|
18
21
|
date: 2026-03-10
|
|
19
|
-
changes:
|
|
22
|
+
changes: Compiler-Optionen aktualisieren, Unterstützung für 'output' und 'noMetadata' hinzufügen
|
|
20
23
|
- version: 8.1.7
|
|
21
24
|
date: 2026-02-25
|
|
22
25
|
changes: Compiler-Optionen aktualisieren
|
|
23
26
|
- version: 8.0.6
|
|
24
27
|
date: 2026-02-12
|
|
25
|
-
changes:
|
|
28
|
+
changes: Unterstützung für Open Router, Alibaba, Amazon, Google Vertex Bedrock, Fireworks, Groq, Hugging Face und Together.ai Provider hinzufügen
|
|
26
29
|
- version: 8.0.5
|
|
27
30
|
date: 2026-02-06
|
|
28
31
|
changes: Hinzufügen von `dataSerialization` zur KI-Konfiguration
|
|
29
32
|
- version: 8.0.0
|
|
30
33
|
date: 2026-01-22
|
|
31
|
-
changes:
|
|
34
|
+
changes: Build-Konfiguration für importMode in die Wörterbuch-Konfiguration verschoben.
|
|
32
35
|
- version: 8.0.0
|
|
33
36
|
date: 2026-01-18
|
|
34
37
|
changes: Systemkonfiguration von der Inhaltskonfiguration trennen. Interne Pfade zur Eigenschaft `system` verschieben. `codeDir` hinzufügen, um Inhaltsdateien von der Codetransformation zu trennen.
|
|
@@ -735,13 +738,6 @@ Einstellungen im Zusammenhang mit der Inhaltsverwaltung innerhalb der Anwendung,
|
|
|
735
738
|
- _Beispiel_: `['.data.ts', '.data.js', '.data.json']`
|
|
736
739
|
- _Hinweis_: Die Anpassung der Dateierweiterungen kann helfen, Konflikte zu vermeiden.
|
|
737
740
|
|
|
738
|
-
- **baseDir**:
|
|
739
|
-
- _Typ_: `string`
|
|
740
|
-
- _Standard_: `process.cwd()`
|
|
741
|
-
- _Beschreibung_: Das Basisverzeichnis für das Projekt.
|
|
742
|
-
- _Beispiel_: `'/path/to/project'`
|
|
743
|
-
- _Hinweis_: Dies wird verwendet, um alle Intlayer-bezogenen Verzeichnisse aufzulösen.
|
|
744
|
-
|
|
745
741
|
- **contentDir**:
|
|
746
742
|
- _Typ_: `string[]`
|
|
747
743
|
- _Standard_: `['.']`
|
|
@@ -780,6 +776,13 @@ Einstellungen im Zusammenhang mit internen Pfaden und Ausgabeergebnissen von Int
|
|
|
780
776
|
|
|
781
777
|
#### Eigenschaften
|
|
782
778
|
|
|
779
|
+
- **baseDir**:
|
|
780
|
+
- _Typ_: `string`
|
|
781
|
+
- _Standard_: `process.cwd()`
|
|
782
|
+
- _Beschreibung_: Das Basisverzeichnis für das Projekt.
|
|
783
|
+
- _Beispiel_: `'/path/to/project'`
|
|
784
|
+
- _Hinweis_: Dies wird verwendet, um alle Intlayer-bezogenen Verzeichnisse aufzulösen.
|
|
785
|
+
|
|
783
786
|
- **dictionariesDir**:
|
|
784
787
|
- _Typ_: `string`
|
|
785
788
|
- _Standard_: `'.intlayer/dictionary'`
|
|
@@ -437,12 +437,33 @@ export const Route = createFileRoute("/{-$locale}/")({
|
|
|
437
437
|
component: RouteComponent,
|
|
438
438
|
head: ({ params }) => {
|
|
439
439
|
const { locale } = params;
|
|
440
|
+
const path = "/"; // The path for this route
|
|
441
|
+
|
|
440
442
|
const metaContent = getIntlayer("app", locale);
|
|
441
443
|
|
|
442
444
|
return {
|
|
445
|
+
links: [
|
|
446
|
+
// Canonical link: Points to the current localized page
|
|
447
|
+
{ rel: "canonical", href: getLocalizedUrl(path, locale) },
|
|
448
|
+
|
|
449
|
+
// Hreflang: Tell Google about all localized versions
|
|
450
|
+
...localeMap(({ locale: mapLocale }) => ({
|
|
451
|
+
rel: "alternate",
|
|
452
|
+
hrefLang: mapLocale,
|
|
453
|
+
href: getLocalizedUrl(path, mapLocale),
|
|
454
|
+
})),
|
|
455
|
+
|
|
456
|
+
// x-default: For users in unmatched languages
|
|
457
|
+
// Define the default fallback locale (usually your primary language)
|
|
458
|
+
{
|
|
459
|
+
rel: "alternate",
|
|
460
|
+
hrefLang: "x-default",
|
|
461
|
+
href: getLocalizedUrl(path, defaultLocale),
|
|
462
|
+
},
|
|
463
|
+
],
|
|
443
464
|
meta: [
|
|
444
465
|
{ title: metaContent.title },
|
|
445
|
-
{ content: metaContent.meta.description
|
|
466
|
+
{ name: "description", content: metaContent.meta.description },
|
|
446
467
|
],
|
|
447
468
|
};
|
|
448
469
|
},
|
package/docs/en/configuration.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2024-08-13
|
|
3
|
-
updatedAt: 2026-
|
|
3
|
+
updatedAt: 2026-03-11
|
|
4
4
|
title: Configuration
|
|
5
5
|
description: Learn how to configure Intlayer for your application. Understand the various settings and options available to customize Intlayer to your needs.
|
|
6
6
|
keywords:
|
|
@@ -14,6 +14,9 @@ slugs:
|
|
|
14
14
|
- concept
|
|
15
15
|
- configuration
|
|
16
16
|
history:
|
|
17
|
+
- version: 8.3.0
|
|
18
|
+
data: 2026-03-11
|
|
19
|
+
changes: Move 'baseDir' from 'content' to 'system' config
|
|
17
20
|
- version: 8.2.0
|
|
18
21
|
date: 2026-03-09
|
|
19
22
|
changes: Update compiler options, add 'output' and 'noMetadata' support
|
|
@@ -918,13 +921,6 @@ Settings related to content handling within the application, including directory
|
|
|
918
921
|
- _Example_: `['.data.ts', '.data.js', '.data.json']`
|
|
919
922
|
- _Note_: Customizing file extensions can help avoid conflicts.
|
|
920
923
|
|
|
921
|
-
- **baseDir**:
|
|
922
|
-
- _Type_: `string`
|
|
923
|
-
- _Default_: `process.cwd()`
|
|
924
|
-
- _Description_: The base directory for the project.
|
|
925
|
-
- _Example_: `'/path/to/project'`
|
|
926
|
-
- _Note_: This is used to resolve all Intlayer-related directories.
|
|
927
|
-
|
|
928
924
|
- **contentDir**:
|
|
929
925
|
- _Type_: `string[]`
|
|
930
926
|
- _Default_: `['.']`
|
|
@@ -963,6 +959,13 @@ Settings related to internal paths and output results of Intlayer. These setting
|
|
|
963
959
|
|
|
964
960
|
#### Properties
|
|
965
961
|
|
|
962
|
+
- **baseDir**:
|
|
963
|
+
- _Type_: `string`
|
|
964
|
+
- _Default_: `process.cwd()`
|
|
965
|
+
- _Description_: The base directory for the project.
|
|
966
|
+
- _Example_: `'/path/to/project'`
|
|
967
|
+
- _Note_: This is used to resolve all Intlayer-related directories.
|
|
968
|
+
|
|
966
969
|
- **dictionariesDir**:
|
|
967
970
|
- _Type_: `string`
|
|
968
971
|
- _Default_: `'.intlayer/dictionary'`
|
|
@@ -426,7 +426,7 @@ Access your content dictionaries throughout your application:
|
|
|
426
426
|
|
|
427
427
|
```tsx fileName="src/routes/{-$locale}/index.tsx"
|
|
428
428
|
import { createFileRoute } from "@tanstack/react-router";
|
|
429
|
-
import { getIntlayer } from "intlayer";
|
|
429
|
+
import { getIntlayer, defaultLocale } from "intlayer";
|
|
430
430
|
import { useIntlayer } from "react-intlayer";
|
|
431
431
|
|
|
432
432
|
import LocaleSwitcher from "@/components/locale-switcher";
|
|
@@ -437,12 +437,33 @@ export const Route = createFileRoute("/{-$locale}/")({
|
|
|
437
437
|
component: RouteComponent,
|
|
438
438
|
head: ({ params }) => {
|
|
439
439
|
const { locale } = params;
|
|
440
|
+
const path = "/"; // The path for this route
|
|
441
|
+
|
|
440
442
|
const metaContent = getIntlayer("app", locale);
|
|
441
443
|
|
|
442
444
|
return {
|
|
445
|
+
links: [
|
|
446
|
+
// Canonical link: Points to the current localized page
|
|
447
|
+
{ rel: "canonical", href: getLocalizedUrl(path, locale) },
|
|
448
|
+
|
|
449
|
+
// Hreflang: Tell Google about all localized versions
|
|
450
|
+
...localeMap(({ locale: mapLocale }) => ({
|
|
451
|
+
rel: "alternate",
|
|
452
|
+
hrefLang: mapLocale,
|
|
453
|
+
href: getLocalizedUrl(path, mapLocale),
|
|
454
|
+
})),
|
|
455
|
+
|
|
456
|
+
// x-default: For users in unmatched languages
|
|
457
|
+
// Define the default fallback locale (usually your primary language)
|
|
458
|
+
{
|
|
459
|
+
rel: "alternate",
|
|
460
|
+
hrefLang: "x-default",
|
|
461
|
+
href: getLocalizedUrl(path, defaultLocale),
|
|
462
|
+
},
|
|
463
|
+
],
|
|
443
464
|
meta: [
|
|
444
465
|
{ title: metaContent.title },
|
|
445
|
-
{ content: metaContent.meta.description
|
|
466
|
+
{ name: "description", content: metaContent.meta.description },
|
|
446
467
|
],
|
|
447
468
|
};
|
|
448
469
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2024-08-13
|
|
3
|
-
updatedAt: 2026-
|
|
3
|
+
updatedAt: 2026-03-11
|
|
4
4
|
title: Configuration
|
|
5
5
|
description: Learn how to configure Intlayer for your application. Understand the various settings and options available to customise Intlayer to your needs.
|
|
6
6
|
keywords:
|
|
@@ -14,6 +14,9 @@ slugs:
|
|
|
14
14
|
- concept
|
|
15
15
|
- configuration
|
|
16
16
|
history:
|
|
17
|
+
- version: 8.3.0
|
|
18
|
+
data: 2026-03-11
|
|
19
|
+
changes: Move 'baseDir' from 'content' to 'system' config
|
|
17
20
|
- version: 8.2.0
|
|
18
21
|
date: 2026-03-09
|
|
19
22
|
changes: Update compiler options, add 'output' and 'noMetadata' support
|
|
@@ -735,13 +738,6 @@ Settings related to content handling within the application, including directory
|
|
|
735
738
|
- _Example_: `['.data.ts', '.data.js', '.data.json']`
|
|
736
739
|
- _Note_: Customising file extensions can help avoid conflicts.
|
|
737
740
|
|
|
738
|
-
- **baseDir**:
|
|
739
|
-
- _Type_: `string`
|
|
740
|
-
- _Default_: `process.cwd()`
|
|
741
|
-
- _Description_: The base directory for the project.
|
|
742
|
-
- _Example_: `'/path/to/project'`
|
|
743
|
-
- _Note_: This is used to resolve all Intlayer-related directories.
|
|
744
|
-
|
|
745
741
|
- **contentDir**:
|
|
746
742
|
- _Type_: `string[]`
|
|
747
743
|
- _Default_: `['.']`
|
|
@@ -780,6 +776,13 @@ Settings related to internal paths and output results of Intlayer. These setting
|
|
|
780
776
|
|
|
781
777
|
#### Properties
|
|
782
778
|
|
|
779
|
+
- **baseDir**:
|
|
780
|
+
- _Type_: `string`
|
|
781
|
+
- _Default_: `process.cwd()`
|
|
782
|
+
- _Description_: The base directory for the project.
|
|
783
|
+
- _Example_: `'/path/to/project'`
|
|
784
|
+
- _Note_: This is used to resolve all Intlayer-related directories.
|
|
785
|
+
|
|
783
786
|
- **dictionariesDir**:
|
|
784
787
|
- _Type_: `string`
|
|
785
788
|
- _Default_: `'.intlayer/dictionary'`
|
|
@@ -437,12 +437,33 @@ export const Route = createFileRoute("/{-$locale}/")({
|
|
|
437
437
|
component: RouteComponent,
|
|
438
438
|
head: ({ params }) => {
|
|
439
439
|
const { locale } = params;
|
|
440
|
+
const path = "/"; // The path for this route
|
|
441
|
+
|
|
440
442
|
const metaContent = getIntlayer("app", locale);
|
|
441
443
|
|
|
442
444
|
return {
|
|
445
|
+
links: [
|
|
446
|
+
// Canonical link: Points to the current localized page
|
|
447
|
+
{ rel: "canonical", href: getLocalizedUrl(path, locale) },
|
|
448
|
+
|
|
449
|
+
// Hreflang: Tell Google about all localized versions
|
|
450
|
+
...localeMap(({ locale: mapLocale }) => ({
|
|
451
|
+
rel: "alternate",
|
|
452
|
+
hrefLang: mapLocale,
|
|
453
|
+
href: getLocalizedUrl(path, mapLocale),
|
|
454
|
+
})),
|
|
455
|
+
|
|
456
|
+
// x-default: For users in unmatched languages
|
|
457
|
+
// Define the default fallback locale (usually your primary language)
|
|
458
|
+
{
|
|
459
|
+
rel: "alternate",
|
|
460
|
+
hrefLang: "x-default",
|
|
461
|
+
href: getLocalizedUrl(path, defaultLocale),
|
|
462
|
+
},
|
|
463
|
+
],
|
|
443
464
|
meta: [
|
|
444
465
|
{ title: metaContent.title },
|
|
445
|
-
{ content: metaContent.meta.description
|
|
466
|
+
{ name: "description", content: metaContent.meta.description },
|
|
446
467
|
],
|
|
447
468
|
};
|
|
448
469
|
},
|
package/docs/es/configuration.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2024-08-13
|
|
3
|
-
updatedAt: 2026-03-
|
|
3
|
+
updatedAt: 2026-03-11
|
|
4
4
|
title: Configuración
|
|
5
5
|
description: Aprende cómo configurar Intlayer para tu aplicación. Entiende las diversas configuraciones y opciones disponibles para personalizar Intlayer según tus necesidades.
|
|
6
6
|
keywords:
|
|
@@ -14,21 +14,24 @@ slugs:
|
|
|
14
14
|
- concept
|
|
15
15
|
- configuration
|
|
16
16
|
history:
|
|
17
|
+
- version: 8.3.0
|
|
18
|
+
data: 2026-03-11
|
|
19
|
+
changes: Mover 'baseDir' de la configuración 'content' a la de 'system'
|
|
17
20
|
- version: 8.2.0
|
|
18
21
|
date: 2026-03-10
|
|
19
|
-
changes:
|
|
22
|
+
changes: Actualizar opciones del compilador, añadir soporte para 'output' y 'noMetadata'
|
|
20
23
|
- version: 8.1.7
|
|
21
24
|
date: 2026-02-25
|
|
22
25
|
changes: Actualizar opciones del compilador
|
|
23
26
|
- version: 8.0.6
|
|
24
27
|
date: 2026-02-12
|
|
25
|
-
changes:
|
|
28
|
+
changes: Añadir soporte para los proveedores Open Router, Alibaba, Amazon, Google Vertex Bedrock, Fireworks, Groq, Hugging Face y Together.ai
|
|
26
29
|
- version: 8.0.5
|
|
27
30
|
date: 2026-02-06
|
|
28
31
|
changes: Añadir `dataSerialization` a la configuración de IA
|
|
29
32
|
- version: 8.0.0
|
|
30
33
|
date: 2026-01-22
|
|
31
|
-
changes:
|
|
34
|
+
changes: Mover la configuración de construcción para importMode a la configuración del diccionario.
|
|
32
35
|
- version: 8.0.0
|
|
33
36
|
date: 2026-01-18
|
|
34
37
|
changes: Separar la configuración del sistema de la configuración del contenido. Mover las rutas internas a la propiedad `system`. Añadir `codeDir` para separar los archivos de contenido de la transformación del código.
|
|
@@ -735,13 +738,6 @@ Configuraciones relacionadas con el manejo de contenido dentro de la aplicación
|
|
|
735
738
|
- _Ejemplo_: `['.data.ts', '.data.js', '.data.json']`
|
|
736
739
|
- _Nota_: Personalizar las extensiones de archivo puede ayudar a evitar conflictos.
|
|
737
740
|
|
|
738
|
-
- **baseDir**:
|
|
739
|
-
- _Tipo_: `string`
|
|
740
|
-
- _Por defecto_: `process.cwd()`
|
|
741
|
-
- _Descripción_: El directorio base para el proyecto.
|
|
742
|
-
- _Ejemplo_: `'/ruta/al/proyecto'`
|
|
743
|
-
- _Nota_: Esto se usa para resolver todos los directorios relacionados con Intlayer.
|
|
744
|
-
|
|
745
741
|
- **contentDir**:
|
|
746
742
|
- _Tipo_: `string[]`
|
|
747
743
|
- _Por defecto_: `['.']`
|
|
@@ -776,10 +772,17 @@ Configuraciones relacionadas con el manejo de contenido dentro de la aplicación
|
|
|
776
772
|
|
|
777
773
|
### Configuración del Sistema
|
|
778
774
|
|
|
779
|
-
|
|
775
|
+
Estructura de directorios y resultados de salida de Intlayer. Estas configuraciones son típicamente internas y no deberían necesitar ser modificadas por el usuario.
|
|
780
776
|
|
|
781
777
|
#### Propiedades
|
|
782
778
|
|
|
779
|
+
- **baseDir**:
|
|
780
|
+
- _Tipo_: `string`
|
|
781
|
+
- _Por defecto_: `process.cwd()`
|
|
782
|
+
- _Descripción_: El directorio base para el proyecto.
|
|
783
|
+
- _Ejemplo_: `'/ruta/al/proyecto'`
|
|
784
|
+
- _Nota_: Esto se usa para resolver todos los directorios relacionados con Intlayer.
|
|
785
|
+
|
|
783
786
|
- **dictionariesDir**:
|
|
784
787
|
- _Tipo_: `string`
|
|
785
788
|
- _Por defecto_: `'.intlayer/dictionary'`
|
|
@@ -437,12 +437,33 @@ export const Route = createFileRoute("/{-$locale}/")({
|
|
|
437
437
|
component: RouteComponent,
|
|
438
438
|
head: ({ params }) => {
|
|
439
439
|
const { locale } = params;
|
|
440
|
+
const path = "/"; // The path for this route
|
|
441
|
+
|
|
440
442
|
const metaContent = getIntlayer("app", locale);
|
|
441
443
|
|
|
442
444
|
return {
|
|
445
|
+
links: [
|
|
446
|
+
// Canonical link: Points to the current localized page
|
|
447
|
+
{ rel: "canonical", href: getLocalizedUrl(path, locale) },
|
|
448
|
+
|
|
449
|
+
// Hreflang: Tell Google about all localized versions
|
|
450
|
+
...localeMap(({ locale: mapLocale }) => ({
|
|
451
|
+
rel: "alternate",
|
|
452
|
+
hrefLang: mapLocale,
|
|
453
|
+
href: getLocalizedUrl(path, mapLocale),
|
|
454
|
+
})),
|
|
455
|
+
|
|
456
|
+
// x-default: For users in unmatched languages
|
|
457
|
+
// Define the default fallback locale (usually your primary language)
|
|
458
|
+
{
|
|
459
|
+
rel: "alternate",
|
|
460
|
+
hrefLang: "x-default",
|
|
461
|
+
href: getLocalizedUrl(path, defaultLocale),
|
|
462
|
+
},
|
|
463
|
+
],
|
|
443
464
|
meta: [
|
|
444
465
|
{ title: metaContent.title },
|
|
445
|
-
{ content: metaContent.meta.description
|
|
466
|
+
{ name: "description", content: metaContent.meta.description },
|
|
446
467
|
],
|
|
447
468
|
};
|
|
448
469
|
},
|
package/docs/fr/configuration.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2024-08-13
|
|
3
|
-
updatedAt: 2026-03-
|
|
3
|
+
updatedAt: 2026-03-11
|
|
4
4
|
title: Configuration
|
|
5
5
|
description: Apprenez à configurer Intlayer pour votre application. Comprenez les différents paramètres et options disponibles pour personnaliser Intlayer selon vos besoins.
|
|
6
6
|
keywords:
|
|
@@ -14,21 +14,24 @@ slugs:
|
|
|
14
14
|
- concept
|
|
15
15
|
- configuration
|
|
16
16
|
history:
|
|
17
|
+
- version: 8.3.0
|
|
18
|
+
data: 2026-03-11
|
|
19
|
+
changes: Déplacer 'baseDir' de la configuration 'content' vers la configuration 'system'
|
|
17
20
|
- version: 8.2.0
|
|
18
21
|
date: 2026-03-10
|
|
19
|
-
changes:
|
|
22
|
+
changes: Mise à jour des options du compilateur, ajout du support de FilePathPattern
|
|
20
23
|
- version: 8.1.7
|
|
21
24
|
date: 2026-02-25
|
|
22
25
|
changes: Mise à jour des options du compilateur
|
|
23
26
|
- version: 8.0.6
|
|
24
27
|
date: 2026-02-12
|
|
25
|
-
changes:
|
|
28
|
+
changes: Ajout du support pour les fournisseurs Open Router, Alibaba, Amazon, Google Vertex Bedrock, Fireworks, Groq, Hugging Face et Together.ai
|
|
26
29
|
- version: 8.0.5
|
|
27
30
|
date: 2026-02-06
|
|
28
31
|
changes: Ajout de `dataSerialization` à la configuration de l'IA
|
|
29
32
|
- version: 8.0.0
|
|
30
33
|
date: 2026-01-22
|
|
31
|
-
changes:
|
|
34
|
+
changes: Déplacer la configuration de build pour importMode vers la configuration du dictionnaire.
|
|
32
35
|
- version: 8.0.0
|
|
33
36
|
date: 2026-01-18
|
|
34
37
|
changes: Séparer la configuration système de la configuration du contenu. Déplacer les chemins internes vers la propriété `system`. Ajouter `codeDir` pour séparer les fichiers de contenu de la transformation du code.
|
|
@@ -738,13 +741,6 @@ Paramètres liés à la gestion du contenu au sein de l'application, incluant le
|
|
|
738
741
|
- _Exemple_ : `['.data.ts', '.data.js', '.data.json']`
|
|
739
742
|
- _Note_ : Personnaliser les extensions de fichiers peut aider à éviter les conflits.
|
|
740
743
|
|
|
741
|
-
- **baseDir** :
|
|
742
|
-
- _Type_ : `string`
|
|
743
|
-
- _Défaut_ : `process.cwd()`
|
|
744
|
-
- _Description_ : Le répertoire de base pour le projet.
|
|
745
|
-
- _Exemple_ : `'/path/to/project'`
|
|
746
|
-
- _Note_ : Ceci est utilisé pour résoudre tous les répertoires liés à Intlayer.
|
|
747
|
-
|
|
748
744
|
- **contentDir** :
|
|
749
745
|
- _Type_ : `string[]`
|
|
750
746
|
- _Défaut_ : `['.']`
|
|
@@ -783,6 +779,13 @@ Paramètres liés aux chemins internes et aux résultats de sortie d'Intlayer. C
|
|
|
783
779
|
|
|
784
780
|
#### Propriétés
|
|
785
781
|
|
|
782
|
+
- **baseDir** :
|
|
783
|
+
- _Type_ : `string`
|
|
784
|
+
- _Défaut_ : `process.cwd()`
|
|
785
|
+
- _Description_ : Le répertoire de base pour le projet.
|
|
786
|
+
- _Exemple_ : `'/path/to/project'`
|
|
787
|
+
- _Note_ : Ceci est utilisé pour résoudre tous les répertoires liés à Intlayer.
|
|
788
|
+
|
|
786
789
|
- **dictionariesDir** :
|
|
787
790
|
- _Type_ : `string`
|
|
788
791
|
- _Par défaut_ : `'.intlayer/dictionary'`
|
|
@@ -437,12 +437,33 @@ export const Route = createFileRoute("/{-$locale}/")({
|
|
|
437
437
|
component: RouteComponent,
|
|
438
438
|
head: ({ params }) => {
|
|
439
439
|
const { locale } = params;
|
|
440
|
+
const path = "/"; // The path for this route
|
|
441
|
+
|
|
440
442
|
const metaContent = getIntlayer("app", locale);
|
|
441
443
|
|
|
442
444
|
return {
|
|
445
|
+
links: [
|
|
446
|
+
// Canonical link: Points to the current localized page
|
|
447
|
+
{ rel: "canonical", href: getLocalizedUrl(path, locale) },
|
|
448
|
+
|
|
449
|
+
// Hreflang: Tell Google about all localized versions
|
|
450
|
+
...localeMap(({ locale: mapLocale }) => ({
|
|
451
|
+
rel: "alternate",
|
|
452
|
+
hrefLang: mapLocale,
|
|
453
|
+
href: getLocalizedUrl(path, mapLocale),
|
|
454
|
+
})),
|
|
455
|
+
|
|
456
|
+
// x-default: For users in unmatched languages
|
|
457
|
+
// Define the default fallback locale (usually your primary language)
|
|
458
|
+
{
|
|
459
|
+
rel: "alternate",
|
|
460
|
+
hrefLang: "x-default",
|
|
461
|
+
href: getLocalizedUrl(path, defaultLocale),
|
|
462
|
+
},
|
|
463
|
+
],
|
|
443
464
|
meta: [
|
|
444
465
|
{ title: metaContent.title },
|
|
445
|
-
{ content: metaContent.meta.description
|
|
466
|
+
{ name: "description", content: metaContent.meta.description },
|
|
446
467
|
],
|
|
447
468
|
};
|
|
448
469
|
},
|
package/docs/hi/configuration.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2024-08-13
|
|
3
|
-
updatedAt: 2026-
|
|
3
|
+
updatedAt: 2026-03-11
|
|
4
4
|
title: कॉन्फ़िगरेशन
|
|
5
5
|
description: अपने एप्लिकेशन के लिए Intlayer को कॉन्फ़िगर करना सीखें। Intlayer को अपनी आवश्यकताओं के अनुसार अनुकूलित करने के लिए विभिन्न सेटिंग्स और विकल्पों को समझें।
|
|
6
6
|
keywords:
|
|
@@ -14,21 +14,24 @@ slugs:
|
|
|
14
14
|
- concept
|
|
15
15
|
- configuration
|
|
16
16
|
history:
|
|
17
|
+
- version: 8.3.0
|
|
18
|
+
data: 2026-03-11
|
|
19
|
+
changes: 'baseDir' को 'content' से 'system' कॉन्फिग में ले जाया गया
|
|
17
20
|
- version: 8.2.0
|
|
18
21
|
date: 2026-03-09
|
|
19
|
-
changes:
|
|
22
|
+
changes: कंपाइलर विकल्पों को अपडेट करें, 'output' और 'noMetadata' समर्थन जोड़ें
|
|
20
23
|
- version: 8.1.7
|
|
21
24
|
date: 2026-02-25
|
|
22
25
|
changes: कंपाइलर विकल्पों को अपडेट करें
|
|
23
26
|
- version: 8.0.6
|
|
24
27
|
date: 2026-02-12
|
|
25
|
-
changes:
|
|
28
|
+
changes: Open Router, Alibaba, Amazon, Google Vertex Bedrock, Fireworks, Groq, Hugging Face, और Together.ai प्रदाताओं के लिए समर्थन जोड़ें
|
|
26
29
|
- version: 8.0.5
|
|
27
30
|
date: 2026-02-06
|
|
28
31
|
changes: AI कॉन्फ़िगरेशन में `dataSerialization` जोड़ें
|
|
29
32
|
- version: 8.0.0
|
|
30
33
|
date: 2026-01-22
|
|
31
|
-
changes:
|
|
34
|
+
changes: आयात मोड निर्माण कॉन्फ़िगरेशन को शब्दकोश कॉन्फ़िगरेशन में ले जाएं।
|
|
32
35
|
- version: 8.0.0
|
|
33
36
|
date: 2026-01-18
|
|
34
37
|
changes: सिस्टम कॉन्फ़िगरेशन को सामग्री कॉन्फ़िगरेशन से अलग करें। आंतरिक पथों को `system` गुण में ले जाएं। सामग्री फ़ाइलों को कोड परिवर्तन से अलग करने के लिए `codeDir` जोड़ें।
|
|
@@ -735,13 +738,6 @@ export default config;
|
|
|
735
738
|
- _उदाहरण_: `['.data.ts', '.data.js', '.data.json']`
|
|
736
739
|
- _टिप्पणी_: फ़ाइल एक्सटेंशन को कस्टमाइज़ करने से टकराव से बचा जा सकता है।
|
|
737
740
|
|
|
738
|
-
- **baseDir**:
|
|
739
|
-
- _प्रकार_: `string`
|
|
740
|
-
- _डिफ़ॉल्ट_: `process.cwd()`
|
|
741
|
-
- _विवरण_: परियोजना के लिए मूल निर्देशिका।
|
|
742
|
-
- _उदाहरण_: `'/path/to/project'`
|
|
743
|
-
- _टिप्पणी_: इसका उपयोग सभी Intlayer-संबंधित निर्देशिकाओं को हल करने के लिए किया जाता है।
|
|
744
|
-
|
|
745
741
|
- **dictionaryOutput**:
|
|
746
742
|
- _प्रकार_: `string[]`
|
|
747
743
|
- _डिफ़ॉल्ट_: `['intlayer']`
|
|
@@ -810,6 +806,21 @@ export default config;
|
|
|
810
806
|
- _विवरण_: सामग्री खोज से बाहर किए गए निर्देशिकाएँ।
|
|
811
807
|
- _नोट_: यह सेटिंग अभी उपयोग में नहीं है, लेकिन भविष्य में लागू करने की योजना है।
|
|
812
808
|
|
|
809
|
+
---
|
|
810
|
+
|
|
811
|
+
### सिस्टम कॉन्फ़िगरेशन
|
|
812
|
+
|
|
813
|
+
Intlayer के आंतरिक पथों और आउटपुट परिणामों से संबंधित सेटिंग्स। ये सेटिंग्स आमतौर पर आंतरिक होती हैं और उपयोगकर्ता द्वारा संशोधित करने की आवश्यकता नहीं होनी चाहिए।
|
|
814
|
+
|
|
815
|
+
#### गुण
|
|
816
|
+
|
|
817
|
+
- **baseDir**:
|
|
818
|
+
- _प्रकार_: `string`
|
|
819
|
+
- _डिफ़ॉल्ट_: `process.cwd()`
|
|
820
|
+
- _विवरण_: परियोजना के लिए मूल निर्देशिका।
|
|
821
|
+
- _उदाहरण_: `'/path/to/project'`
|
|
822
|
+
- _टिप्पणी_: इसका उपयोग सभी Intlayer-संबंधित निर्देशिकाओं को हल करने के लिए किया जाता है।
|
|
823
|
+
|
|
813
824
|
### शब्दकोश कॉन्फ़िगरेशन
|
|
814
825
|
|
|
815
826
|
सेटिंग्स जो शब्दकोश संचालन को नियंत्रित करती हैं, जिसमें ऑटो-फिल व्यवहार और सामग्री जनरेशन शामिल है।
|