@intlayer/docs 5.7.5 → 5.7.6-canary.0

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 (97) hide show
  1. package/blog/ar/intlayer_with_i18next.md +1 -1
  2. package/dist/cjs/common.cjs +0 -1
  3. package/dist/cjs/common.cjs.map +1 -1
  4. package/dist/cjs/generated/docs.entry.cjs +80 -0
  5. package/dist/cjs/generated/docs.entry.cjs.map +1 -1
  6. package/dist/esm/common.mjs +0 -1
  7. package/dist/esm/common.mjs.map +1 -1
  8. package/dist/esm/generated/docs.entry.mjs +80 -0
  9. package/dist/esm/generated/docs.entry.mjs.map +1 -1
  10. package/dist/types/common.d.ts.map +1 -1
  11. package/dist/types/generated/docs.entry.d.ts +1 -0
  12. package/dist/types/generated/docs.entry.d.ts.map +1 -1
  13. package/docs/ar/packages/react-intlayer/useI18n.md +250 -0
  14. package/docs/de/dictionary/gender.md +3 -3
  15. package/docs/de/packages/react-intlayer/useI18n.md +250 -0
  16. package/docs/en/configuration.md +2 -2
  17. package/docs/en/packages/react-intlayer/useI18n.md +250 -0
  18. package/docs/en-GB/packages/react-intlayer/useI18n.md +254 -0
  19. package/docs/es/dictionary/enumeration.md +1 -1
  20. package/docs/es/dictionary/gender.md +3 -3
  21. package/docs/es/locale_mapper.md +1 -1
  22. package/docs/es/packages/react-intlayer/useI18n.md +250 -0
  23. package/docs/fr/intlayer_with_vite+preact.md +1 -1
  24. package/docs/fr/packages/react-intlayer/useI18n.md +250 -0
  25. package/docs/hi/dictionary/enumeration.md +0 -1
  26. package/docs/hi/packages/react-intlayer/useI18n.md +259 -0
  27. package/docs/it/packages/react-intlayer/useI18n.md +250 -0
  28. package/docs/ja/dictionary/enumeration.md +0 -1
  29. package/docs/ja/packages/react-intlayer/useI18n.md +250 -0
  30. package/docs/ko/dictionary/enumeration.md +0 -1
  31. package/docs/ko/packages/react-intlayer/useI18n.md +250 -0
  32. package/docs/pt/packages/react-intlayer/useI18n.md +250 -0
  33. package/docs/ru/dictionary/enumeration.md +0 -1
  34. package/docs/ru/packages/react-intlayer/useI18n.md +250 -0
  35. package/docs/zh/packages/react-intlayer/useI18n.md +250 -0
  36. package/frequent_questions/ar/unknown_command.md +1 -1
  37. package/frequent_questions/de/array_as_content_declaration.md +1 -1
  38. package/frequent_questions/de/build_dictionaries.md +1 -1
  39. package/frequent_questions/de/build_error_CI_CD.md +1 -1
  40. package/frequent_questions/de/customized_locale_list.md +1 -1
  41. package/frequent_questions/de/esbuild_error.md +1 -1
  42. package/frequent_questions/de/intlayer_command_undefined.md +1 -1
  43. package/frequent_questions/de/locale_incorect_in_url.md +1 -1
  44. package/frequent_questions/de/static_rendering.md +1 -1
  45. package/frequent_questions/de/translated_path_url.md +1 -1
  46. package/frequent_questions/de/unknown_command.md +1 -1
  47. package/frequent_questions/en-GB/customized_locale_list.md +1 -1
  48. package/frequent_questions/es/array_as_content_declaration.md +1 -1
  49. package/frequent_questions/es/build_dictionaries.md +1 -1
  50. package/frequent_questions/es/customized_locale_list.md +1 -1
  51. package/frequent_questions/es/domain_routing.md +1 -1
  52. package/frequent_questions/es/get_locale_cookie.md +1 -1
  53. package/frequent_questions/es/intlayer_command_undefined.md +1 -1
  54. package/frequent_questions/es/locale_incorect_in_url.md +1 -1
  55. package/frequent_questions/es/static_rendering.md +1 -1
  56. package/frequent_questions/es/translated_path_url.md +1 -1
  57. package/frequent_questions/es/unknown_command.md +1 -1
  58. package/frequent_questions/fr/array_as_content_declaration.md +1 -1
  59. package/frequent_questions/fr/build_dictionaries.md +1 -1
  60. package/frequent_questions/fr/customized_locale_list.md +1 -1
  61. package/frequent_questions/fr/domain_routing.md +1 -1
  62. package/frequent_questions/fr/esbuild_error.md +1 -1
  63. package/frequent_questions/fr/intlayer_command_undefined.md +1 -1
  64. package/frequent_questions/fr/static_rendering.md +1 -1
  65. package/frequent_questions/fr/translated_path_url.md +1 -1
  66. package/frequent_questions/fr/unknown_command.md +1 -1
  67. package/frequent_questions/it/array_as_content_declaration.md +1 -1
  68. package/frequent_questions/it/build_dictionaries.md +1 -1
  69. package/frequent_questions/it/customized_locale_list.md +1 -1
  70. package/frequent_questions/it/esbuild_error.md +1 -1
  71. package/frequent_questions/it/intlayer_command_undefined.md +1 -1
  72. package/frequent_questions/it/locale_incorect_in_url.md +1 -1
  73. package/frequent_questions/it/static_rendering.md +1 -1
  74. package/frequent_questions/it/translated_path_url.md +1 -1
  75. package/frequent_questions/it/unknown_command.md +1 -1
  76. package/frequent_questions/ko/build_dictionaries.md +2 -2
  77. package/frequent_questions/ko/customized_locale_list.md +3 -3
  78. package/frequent_questions/ko/intlayer_command_undefined.md +3 -3
  79. package/frequent_questions/pt/array_as_content_declaration.md +1 -1
  80. package/frequent_questions/pt/build_dictionaries.md +1 -1
  81. package/frequent_questions/pt/build_error_CI_CD.md +1 -1
  82. package/frequent_questions/pt/customized_locale_list.md +1 -1
  83. package/frequent_questions/pt/domain_routing.md +1 -1
  84. package/frequent_questions/pt/esbuild_error.md +1 -1
  85. package/frequent_questions/pt/intlayer_command_undefined.md +1 -1
  86. package/frequent_questions/pt/locale_incorect_in_url.md +1 -1
  87. package/frequent_questions/pt/static_rendering.md +1 -1
  88. package/frequent_questions/pt/translated_path_url.md +1 -1
  89. package/frequent_questions/pt/unknown_command.md +1 -1
  90. package/frequent_questions/zh/build_dictionaries.md +3 -3
  91. package/frequent_questions/zh/customized_locale_list.md +3 -3
  92. package/frequent_questions/zh/esbuild_error.md +3 -3
  93. package/frequent_questions/zh/intlayer_command_undefined.md +3 -3
  94. package/frequent_questions/zh/translated_path_url.md +3 -3
  95. package/package.json +8 -8
  96. package/src/common.ts +0 -1
  97. package/src/generated/docs.entry.ts +80 -0
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,OAAO,EACP,aAAa,EACd,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,aAAa,k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C,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAEhE,OAAO,CAAC,EACR,SAAQ,aAA8C,KACrD,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,CASvC,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAEhE,OAAO,CAAC,EACR,OAAO,MAAM,GAAG,MAAM,EAAE,EACxB,SAAQ,aAA8C,EACtD,gBAAc,4BA+Bf,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAEhE,OAAO,CAAC,EACR,OAAO,MAAM,GAAG,MAAM,EAAE,EACxB,SAAQ,aAA8C,EACtD,gBAAc,sBA0Bf,CAAC"}
@@ -75,6 +75,7 @@ export declare const docsEntry: {
75
75
  readonly './docs/en/packages/react-intlayer/index.md': Record<LocalesValues, Promise<string>>;
76
76
  readonly './docs/en/packages/react-intlayer/t.md': Record<LocalesValues, Promise<string>>;
77
77
  readonly './docs/en/packages/react-intlayer/useDictionary.md': Record<LocalesValues, Promise<string>>;
78
+ readonly './docs/en/packages/react-intlayer/useI18n.md': Record<LocalesValues, Promise<string>>;
78
79
  readonly './docs/en/packages/react-intlayer/useIntlayer.md': Record<LocalesValues, Promise<string>>;
79
80
  readonly './docs/en/packages/react-intlayer/useIntlayerAsync.md': Record<LocalesValues, Promise<string>>;
80
81
  readonly './docs/en/packages/react-intlayer/useLocale.md': Record<LocalesValues, Promise<string>>;
@@ -1 +1 @@
1
- {"version":3,"file":"docs.entry.d.ts","sourceRoot":"","sources":["../../../src/generated/docs.entry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAQzC,e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C;yDAgFtC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;6CAyCtC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;qCAyCtC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;+CAyCtC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;CAC9C,CAAC"}
@@ -0,0 +1,250 @@
1
+ ---
2
+ createdAt: 2024-08-11
3
+ updatedAt: 2025-06-29
4
+ title: توثيق خطاف useI18n | react-intlayer
5
+ description: تعلّم كيفية استخدام خطاف useI18n في حزمة react-intlayer
6
+ keywords:
7
+ - useI18n
8
+ - i18n
9
+ - الترجمة
10
+ - القاموس
11
+ - Intlayer
12
+ - التدويل
13
+ - التوثيق
14
+ - Next.js
15
+ - جافاسكريبت
16
+ - React
17
+ slugs:
18
+ - doc
19
+ - packages
20
+ - react-intlayer
21
+ - useI18n
22
+ ---
23
+
24
+ # تكامل React: توثيق خطاف `useI18n`
25
+
26
+ يوفر هذا القسم إرشادات مفصلة حول كيفية استخدام خطاف `useI18n` داخل تطبيقات React، مما يتيح تعريب المحتوى بكفاءة.
27
+
28
+ ## استيراد `useI18n` في React
29
+
30
+ يمكن استيراد خطاف `useI18n` ودمجه في تطبيقات React حسب السياق كما يلي:
31
+
32
+ - **مكونات العميل:**
33
+
34
+ ```typescript codeFormat="typescript"
35
+ import { useI18n } from "react-intlayer"; // استخدم في مكونات React على جانب العميل
36
+ ```
37
+
38
+ ```javascript codeFormat="esm"
39
+ import { useI18n } from "react-intlayer"; // استخدم في مكونات React على جانب العميل
40
+ ```
41
+
42
+ ```javascript codeFormat="commonjs"
43
+ const { useI18n } = require("react-intlayer"); // استخدم في مكونات React على جانب العميل
44
+ ```
45
+
46
+ - **مكونات الخادم:**
47
+
48
+ ```typescript codeFormat="commonjs"
49
+ import { useI18n } from "react-intlayer/server"; // استخدم في مكونات React على جانب الخادم
50
+ ```
51
+
52
+ ```javascript codeFormat="esm"
53
+ import { useI18n } from "react-intlayer/server"; // استخدم في مكونات React على جانب الخادم
54
+ ```
55
+
56
+ ```javascript codeFormat="commonjs"
57
+ const { useI18n } = require("react-intlayer/server"); // استخدم في مكونات React على جانب الخادم
58
+ ```
59
+
60
+ ## المعاملات
61
+
62
+ يقبل هذا الخطاف معاملين:
63
+
64
+ 1. **`namespace`**: مساحة أسماء القاموس لتحديد نطاق مفاتيح الترجمة.
65
+ 2. **`locale`** (اختياري): اللغة المطلوبة. إذا لم يتم تحديدها، سيتم استخدام لغة السياق كافتراضي.
66
+
67
+ ## القاموس
68
+
69
+ يجب إعلان جميع مفاتيح القاموس داخل ملفات إعلان المحتوى لتعزيز سلامة النوع ومنع الأخطاء. [يمكن العثور على تعليمات التكوين هنا](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ar/dictionary/get_started.md).
70
+
71
+ ## أمثلة الاستخدام في React
72
+
73
+ أمثلة على استخدام الخطاف `useI18n` داخل مكونات React:
74
+
75
+ ```tsx fileName="src/App.tsx" codeFormat="typescript"
76
+ import type { FC } from "react";
77
+ import { ClientComponentExample, ServerComponentExample } from "@components";
78
+ import { IntlayerProvider } from "react-intlayer";
79
+ import { useI18n, IntlayerServerProvider } from "react-intlayer/server";
80
+ import { Locales } from "intlayer";
81
+
82
+ const App: FC<{ locale: Locales }> = ({ locale }) => {
83
+ const t = useI18n("home-page", locale);
84
+
85
+ return (
86
+ <>
87
+ <p>{t("introduction")}</p>
88
+ <IntlayerProvider locale={locale}>
89
+ <ClientComponentExample />
90
+ </IntlayerProvider>
91
+ <IntlayerServerProvider locale={locale}>
92
+ <ServerComponentExample />
93
+ </IntlayerServerProvider>
94
+ </>
95
+ );
96
+ };
97
+ ```
98
+
99
+ ```jsx fileName="src/app.jsx" codeFormat="esm"
100
+ import { ClientComponentExample, ServerComponentExample } from "@components";
101
+ import { IntlayerProvider } from "react-intlayer";
102
+ import { IntlayerServerProvider, useI18n } from "react-intlayer/server";
103
+
104
+ const App = ({ locale }) => {
105
+ const t = useI18n("home-page", locale);
106
+
107
+ return (
108
+ <>
109
+ <p>{t("introduction")}</p>
110
+ <IntlayerProvider locale={locale}>
111
+ <ClientComponentExample />
112
+ </IntlayerProvider>
113
+ <IntlayerServerProvider locale={locale}>
114
+ <ServerComponentExample />
115
+ </IntlayerServerProvider>
116
+ </>
117
+ );
118
+ };
119
+ ```
120
+
121
+ ```jsx fileName="src/app.cjs" codeFormat="commonjs"
122
+ const { IntlayerProvider } = require("react-intlayer");
123
+ const { IntlayerServerProvider, useI18n } = require("react-intlayer/server");
124
+
125
+ const App = ({ locale }) => {
126
+ const t = useI18n("home-page", locale);
127
+
128
+ return (
129
+ <>
130
+ <p>{t("introduction")}</p>
131
+ <IntlayerProvider locale={locale}>
132
+ <ClientComponentExample />
133
+ </IntlayerProvider>
134
+ <IntlayerServerProvider locale={locale}>
135
+ <ServerComponentExample />
136
+ </IntlayerServerProvider>
137
+ </>
138
+ );
139
+ };
140
+ ```
141
+
142
+ ```tsx fileName="src/components/ComponentExample.tsx" codeFormat="typescript"
143
+ import type { FC } from "react";
144
+ import { useI18n } from "react-intlayer";
145
+
146
+ const ComponentExample: FC = () => {
147
+ const t = useI18n("component-example");
148
+
149
+ return (
150
+ <div>
151
+ <h1>{t("title")}</h1> {/* عرض العنوان */}
152
+ <p>{t("description")}</p> {/* عرض الوصف */}
153
+ </div>
154
+ );
155
+ };
156
+ ```
157
+
158
+ ```jsx fileName="src/components/ComponentExample.jsx" codeFormat="esm"
159
+ import { useI18n } from "react-intlayer";
160
+
161
+ const ComponentExample = () => {
162
+ const t = useI18n("component-example");
163
+
164
+ return (
165
+ <div>
166
+ <h1>{t("title")}</h1> {/* عرض العنوان */}
167
+ <p>{t("description")}</p> {/* عرض الوصف */}
168
+ </div>
169
+ );
170
+ };
171
+ ```
172
+
173
+ ```jsx fileName="src/components/ComponentExample.cjs" codeFormat="commonjs"
174
+ const { useI18n } = require("react-intlayer");
175
+
176
+ const ComponentExample = () => {
177
+ const t = useI18n("component-example");
178
+
179
+ return (
180
+ <div>
181
+ <h1>{t("title")}</h1> {/* عرض العنوان */}
182
+ <p>{t("description")}</p> {/* عرض الوصف */}
183
+ </div>
184
+ );
185
+ };
186
+ ```
187
+
188
+ ```tsx fileName="src/components/ServerComponentExample.tsx" codeFormat="typescript"
189
+ import { useI18n } from "react-intlayer/server";
190
+
191
+ const ServerComponentExample = () => {
192
+ const t = useI18n("server-component");
193
+
194
+ return (
195
+ <div>
196
+ <h1>{t("title")}</h1> {/* عرض العنوان */}
197
+ <p>{t("description")}</p> {/* عرض الوصف */}
198
+ </div>
199
+ );
200
+ };
201
+ ```
202
+
203
+ ```jsx fileName="src/components/ServerComponentExample.jsx" codeFormat="esm"
204
+ import { useI18n } from "react-intlayer/server";
205
+
206
+ const ServerComponentExample = () => {
207
+ const t = useI18n("server-component");
208
+
209
+ return (
210
+ <div>
211
+ <h1>{t("title")}</h1> {/* عرض العنوان */}
212
+ <p>{t("description")}</p> {/* عرض الوصف */}
213
+ </div>
214
+ );
215
+ };
216
+ ```
217
+
218
+ ```jsx fileName="src/components/ServerComponentExample.cjs" codeFormat="commonjs"
219
+ const { useI18n } = require("react-intlayer/server");
220
+
221
+ const ServerComponentExample = () => {
222
+ const t = useI18n("server-component");
223
+
224
+ return (
225
+ <div>
226
+ <h1>{t("title")}</h1>
227
+ <p>{t("description")}</p>
228
+ </div>
229
+ );
230
+ };
231
+ ```
232
+
233
+ ## التعامل مع السمات
234
+
235
+ عند تعريب السمات، قم بالوصول إلى قيم الترجمة بشكل مناسب:
236
+
237
+ ```jsx
238
+ <!-- بالنسبة لسمات الوصول (مثل aria-label)، استخدم .value لأن السلاسل النصية البحتة مطلوبة -->
239
+ <button aria-label={t("button.ariaLabel").value}>{t("button.text")}</button>
240
+ ```
241
+
242
+ ## موارد إضافية
243
+
244
+ - **محرر Intlayer المرئي**: للحصول على تجربة إدارة محتوى أكثر سهولة وبديهية، راجع توثيق المحرر المرئي [هنا](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ar/intlayer_visual_editor.md).
245
+
246
+ يغطي هذا القسم بشكل خاص دمج الخطاف `useI18n` في تطبيقات React، مما يبسط عملية التعريب ويضمن اتساق المحتوى عبر اللغات المختلفة.
247
+
248
+ ## تاريخ التوثيق
249
+
250
+ - 6.0.0 - 2025-06-29: الكتابة الأولية لتوثيق الخطاف `useI18n`
@@ -13,9 +13,9 @@ keywords:
13
13
  - React
14
14
  slugs:
15
15
  - doc
16
- - konzept
17
- - inhalte
18
- - geschlecht
16
+ - concept
17
+ - content
18
+ - gender
19
19
  ---
20
20
 
21
21
  # Geschlechtsspezifische Inhalte / Geschlecht in Intlayer
@@ -0,0 +1,250 @@
1
+ ---
2
+ createdAt: 2024-08-11
3
+ updatedAt: 2025-06-29
4
+ title: useI18n Hook Dokumentation | react-intlayer
5
+ description: Erfahren Sie, wie Sie den useI18n Hook im react-intlayer Paket verwenden
6
+ keywords:
7
+ - useI18n
8
+ - i18n
9
+ - Übersetzung
10
+ - Wörterbuch
11
+ - Intlayer
12
+ - Internationalisierung
13
+ - Dokumentation
14
+ - Next.js
15
+ - JavaScript
16
+ - React
17
+ slugs:
18
+ - doc
19
+ - packages
20
+ - react-intlayer
21
+ - useI18n
22
+ ---
23
+
24
+ # React-Integration: `useI18n` Hook Dokumentation
25
+
26
+ Dieser Abschnitt bietet eine detaillierte Anleitung zur Verwendung des `useI18n` Hooks in React-Anwendungen, um eine effiziente Inhaltslokalisierung zu ermöglichen.
27
+
28
+ ## Importieren von `useI18n` in React
29
+
30
+ Der `useI18n` Hook kann je nach Kontext wie folgt in React-Anwendungen importiert und integriert werden:
31
+
32
+ - **Client-Komponenten:**
33
+
34
+ ```typescript codeFormat="typescript"
35
+ import { useI18n } from "react-intlayer"; // Verwendung in clientseitigen React-Komponenten
36
+ ```
37
+
38
+ ```javascript codeFormat="esm"
39
+ import { useI18n } from "react-intlayer"; // Verwendung in clientseitigen React-Komponenten
40
+ ```
41
+
42
+ ```javascript codeFormat="commonjs"
43
+ const { useI18n } = require("react-intlayer"); // Verwendung in clientseitigen React-Komponenten
44
+ ```
45
+
46
+ - **Server-Komponenten:**
47
+
48
+ ```typescript codeFormat="commonjs"
49
+ import { useI18n } from "react-intlayer/server"; // Verwendung in serverseitigen React-Komponenten
50
+ ```
51
+
52
+ ```javascript codeFormat="esm"
53
+ import { useI18n } from "react-intlayer/server"; // Verwendung in serverseitigen React-Komponenten
54
+ ```
55
+
56
+ ```javascript codeFormat="commonjs"
57
+ const { useI18n } = require("react-intlayer/server"); // Verwendung in serverseitigen React-Komponenten
58
+ ```
59
+
60
+ ## Parameter
61
+
62
+ Dieser Hook akzeptiert zwei Parameter:
63
+
64
+ 1. **`namespace`**: Ein Wörterbuch-Namespace zur Eingrenzung der Übersetzungsschlüssel.
65
+ 2. **`locale`** (optional): Die gewünschte Locale. Wenn nicht angegeben, wird standardmäßig die Locale des Kontexts verwendet.
66
+
67
+ ## Wörterbuch
68
+
69
+ Alle Wörterbuchschlüssel müssen in Inhaltsdeklarationsdateien deklariert werden, um die Typsicherheit zu erhöhen und Fehler zu vermeiden. [Konfigurationsanweisungen finden Sie hier](https://github.com/aymericzip/intlayer/blob/main/docs/docs/de/dictionary/get_started.md).
70
+
71
+ ## Anwendungsbeispiele in React
72
+
73
+ Beispiele für die Verwendung des `useI18n` Hooks innerhalb von React-Komponenten:
74
+
75
+ ```tsx fileName="src/App.tsx" codeFormat="typescript"
76
+ import type { FC } from "react";
77
+ import { ClientComponentExample, ServerComponentExample } from "@components";
78
+ import { IntlayerProvider } from "react.intlayer";
79
+ import { useI18n, IntlayerServerProvider } from "react-intlayer/server";
80
+ import { Locales } from "intlayer";
81
+
82
+ const App: FC<{ locale: Locales }> = ({ locale }) => {
83
+ const t = useI18n("home-page", locale);
84
+
85
+ return (
86
+ <>
87
+ <p>{t("introduction")}</p>
88
+ <IntlayerProvider locale={locale}>
89
+ <ClientComponentExample />
90
+ </IntlayerProvider>
91
+ <IntlayerServerProvider locale={locale}>
92
+ <ServerComponentExample />
93
+ </IntlayerServerProvider>
94
+ </>
95
+ );
96
+ };
97
+ ```
98
+
99
+ ```jsx fileName="src/app.jsx" codeFormat="esm"
100
+ import { ClientComponentExample, ServerComponentExample } from "@components";
101
+ import { IntlayerProvider } from "react-intlayer";
102
+ import { IntlayerServerProvider, useI18n } from "react-intlayer/server";
103
+
104
+ const App = ({ locale }) => {
105
+ const t = useI18n("home-page", locale);
106
+
107
+ return (
108
+ <>
109
+ <p>{t("introduction")}</p>
110
+ <IntlayerProvider locale={locale}>
111
+ <ClientComponentExample />
112
+ </IntlayerProvider>
113
+ <IntlayerServerProvider locale={locale}>
114
+ <ServerComponentExample />
115
+ </IntlayerServerProvider>
116
+ </>
117
+ );
118
+ };
119
+ ```
120
+
121
+ ```jsx fileName="src/app.cjs" codeFormat="commonjs"
122
+ const { IntlayerProvider } = require("react-intlayer");
123
+ const { IntlayerServerProvider, useI18n } = require("react-intlayer/server");
124
+
125
+ const App = ({ locale }) => {
126
+ const t = useI18n("home-page", locale);
127
+
128
+ return (
129
+ <>
130
+ <p>{t("introduction")}</p>
131
+ <IntlayerProvider locale={locale}>
132
+ <ClientComponentExample />
133
+ </IntlayerProvider>
134
+ <IntlayerServerProvider locale={locale}>
135
+ <ServerComponentExample />
136
+ </IntlayerServerProvider>
137
+ </>
138
+ );
139
+ };
140
+ ```
141
+
142
+ ```tsx fileName="src/components/ComponentExample.tsx" codeFormat="typescript"
143
+ import type { FC } from "react";
144
+ import { useI18n } from "react-intlayer";
145
+
146
+ const ComponentExample: FC = () => {
147
+ const t = useI18n("component-example");
148
+
149
+ return (
150
+ <div>
151
+ <h1>{t("title")}</h1> {/* Titel anzeigen */}
152
+ <p>{t("description")}</p> {/* Beschreibung anzeigen */}
153
+ </div>
154
+ );
155
+ };
156
+ ```
157
+
158
+ ```jsx fileName="src/components/ComponentExample.jsx" codeFormat="esm"
159
+ import { useI18n } from "react-intlayer";
160
+
161
+ const ComponentExample = () => {
162
+ const t = useI18n("component-example");
163
+
164
+ return (
165
+ <div>
166
+ <h1>{t("title")}</h1> {/* Titel anzeigen */}
167
+ <p>{t("description")}</p> {/* Beschreibung anzeigen */}
168
+ </div>
169
+ );
170
+ };
171
+ ```
172
+
173
+ ```jsx fileName="src/components/ComponentExample.cjs" codeFormat="commonjs"
174
+ const { useI18n } = require("react-intlayer");
175
+
176
+ const ComponentExample = () => {
177
+ const t = useI18n("component-example");
178
+
179
+ return (
180
+ <div>
181
+ <h1>{t("title")}</h1> {/* Titel anzeigen */}
182
+ <p>{t("description")}</p> {/* Beschreibung anzeigen */}
183
+ </div>
184
+ );
185
+ };
186
+ ```
187
+
188
+ ```tsx fileName="src/components/ServerComponentExample.tsx" codeFormat="typescript"
189
+ import { useI18n } from "react-intlayer/server";
190
+
191
+ const ServerComponentExample = () => {
192
+ const t = useI18n("server-component");
193
+
194
+ return (
195
+ <div>
196
+ <h1>{t("title")}</h1> {/* Titel anzeigen */}
197
+ <p>{t("description")}</p> {/* Beschreibung anzeigen */}
198
+ </div>
199
+ );
200
+ };
201
+ ```
202
+
203
+ ```jsx fileName="src/components/ServerComponentExample.jsx" codeFormat="esm"
204
+ import { useI18n } from "react-intlayer/server";
205
+
206
+ const ServerComponentExample = () => {
207
+ const t = useI18n("server-component");
208
+
209
+ return (
210
+ <div>
211
+ <h1>{t("title")}</h1> {/* Titel anzeigen */}
212
+ <p>{t("description")}</p> {/* Beschreibung anzeigen */}
213
+ </div>
214
+ );
215
+ };
216
+ ```
217
+
218
+ ```jsx fileName="src/components/ServerComponentExample.cjs" codeFormat="commonjs"
219
+ const { useI18n } = require("react-intlayer/server");
220
+
221
+ const ServerComponentExample = () => {
222
+ const t = useI18n("server-component");
223
+
224
+ return (
225
+ <div>
226
+ <h1>{t("title")}</h1>
227
+ <p>{t("description")}</p>
228
+ </div>
229
+ );
230
+ };
231
+ ```
232
+
233
+ ## Attributbehandlung
234
+
235
+ Beim Lokalisieren von Attributen greifen Sie entsprechend auf die Übersetzungswerte zu:
236
+
237
+ ```jsx
238
+ <!-- Für Barrierefreiheitsattribute (z. B. aria-label) verwenden Sie .value, da reine Strings erforderlich sind -->
239
+ <button aria-label={t("button.ariaLabel").value}>{t("button.text")}</button>
240
+ ```
241
+
242
+ ## Zusätzliche Ressourcen
243
+
244
+ - **Intlayer Visual Editor**: Für eine intuitivere Verwaltung von Inhalten konsultieren Sie die Dokumentation des visuellen Editors [hier](https://github.com/aymericzip/intlayer/blob/main/docs/docs/de/intlayer_visual_editor.md).
245
+
246
+ Dieser Abschnitt behandelt speziell die Integration des `useI18n`-Hooks in React-Anwendungen, vereinfacht den Lokalisierungsprozess und gewährleistet Konsistenz der Inhalte über verschiedene Sprachversionen hinweg.
247
+
248
+ ## Dokumentationshistorie
249
+
250
+ - 6.0.0 - 2025-06-29: Erste Erstellung der Dokumentation zum `useI18n` Hook
@@ -242,9 +242,9 @@ Defines settings related to the integrated editor, including server port and act
242
242
 
243
243
  - _Type_: `boolean`
244
244
  - _Default_: `false`
245
- - _Description_: Indicates if the application should hot reload the locale configurations when a change is detected.
245
+ - _Description_: Indicates if the application server should hot reload the locale configurations when a change is detected.
246
246
  - _Example_: `true`
247
- - _Note_: For example, when a new dictionary is added or updated, the application will update the content tu display in the page.
247
+ - _Note_: For example, when a new dictionary is added or updated, the application will update the content to display in the page.
248
248
  - _Note_: Because the hot reloading needs an continuous connection to the server, it is only available for clients of the `enterprise` plan.
249
249
 
250
250
  - **dictionaryPriorityStrategy**: