@intlayer/docs 8.0.4 → 8.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/dist/cjs/blog.cjs +1 -0
  2. package/dist/cjs/blog.cjs.map +1 -1
  3. package/dist/cjs/common.cjs +1 -0
  4. package/dist/cjs/common.cjs.map +1 -1
  5. package/dist/cjs/doc.cjs +1 -0
  6. package/dist/cjs/doc.cjs.map +1 -1
  7. package/dist/cjs/frequentQuestions.cjs +1 -0
  8. package/dist/cjs/frequentQuestions.cjs.map +1 -1
  9. package/dist/cjs/generated/blog.entry.cjs +1 -0
  10. package/dist/cjs/generated/blog.entry.cjs.map +1 -1
  11. package/dist/cjs/generated/docs.entry.cjs +21 -0
  12. package/dist/cjs/generated/docs.entry.cjs.map +1 -1
  13. package/dist/cjs/generated/frequentQuestions.entry.cjs +1 -0
  14. package/dist/cjs/generated/frequentQuestions.entry.cjs.map +1 -1
  15. package/dist/cjs/generated/legal.entry.cjs +1 -0
  16. package/dist/cjs/generated/legal.entry.cjs.map +1 -1
  17. package/dist/cjs/index.cjs +1 -0
  18. package/dist/cjs/legal.cjs +1 -0
  19. package/dist/cjs/legal.cjs.map +1 -1
  20. package/dist/esm/generated/docs.entry.mjs +20 -0
  21. package/dist/esm/generated/docs.entry.mjs.map +1 -1
  22. package/dist/types/generated/docs.entry.d.ts +1 -0
  23. package/dist/types/generated/docs.entry.d.ts.map +1 -1
  24. package/docs/ar/cli/doc-translate.md +1 -0
  25. package/docs/ar/cli/fill.md +1 -0
  26. package/docs/ar/configuration.md +10 -0
  27. package/docs/ar/intlayer_with_analog.md +371 -0
  28. package/docs/ar/intlayer_with_angular.md +12 -14
  29. package/docs/ar/packages/solid-intlayer/useIntlayer.md +1 -1
  30. package/docs/de/agent_skills.md +53 -0
  31. package/docs/de/cli/doc-translate.md +1 -0
  32. package/docs/de/cli/fill.md +1 -0
  33. package/docs/de/configuration.md +10 -0
  34. package/docs/de/intlayer_with_analog.md +369 -0
  35. package/docs/de/intlayer_with_angular.md +11 -16
  36. package/docs/de/packages/solid-intlayer/useIntlayer.md +1 -1
  37. package/docs/en/agent_skills.md +53 -0
  38. package/docs/en/cli/doc-translate.md +1 -0
  39. package/docs/en/cli/fill.md +1 -0
  40. package/docs/en/configuration.md +21 -1
  41. package/docs/en/intlayer_with_analog.md +4 -12
  42. package/docs/en/intlayer_with_angular.md +13 -15
  43. package/docs/en/packages/react-intlayer/useIntlayer.md +1 -1
  44. package/docs/en/packages/solid-intlayer/useIntlayer.md +1 -1
  45. package/docs/en-GB/cli/doc-translate.md +1 -0
  46. package/docs/en-GB/cli/fill.md +1 -0
  47. package/docs/en-GB/configuration.md +10 -0
  48. package/docs/en-GB/intlayer_with_analog.md +369 -0
  49. package/docs/en-GB/intlayer_with_angular.md +12 -14
  50. package/docs/en-GB/packages/solid-intlayer/useIntlayer.md +1 -1
  51. package/docs/es/agent_skills.md +53 -0
  52. package/docs/es/cli/doc-translate.md +1 -0
  53. package/docs/es/cli/fill.md +1 -0
  54. package/docs/es/configuration.md +10 -0
  55. package/docs/es/intlayer_with_analog.md +369 -0
  56. package/docs/es/intlayer_with_angular.md +11 -16
  57. package/docs/es/packages/solid-intlayer/useIntlayer.md +1 -1
  58. package/docs/fr/agent_skills.md +53 -0
  59. package/docs/fr/cli/doc-translate.md +1 -0
  60. package/docs/fr/cli/fill.md +1 -0
  61. package/docs/fr/configuration.md +10 -0
  62. package/docs/fr/intlayer_with_analog.md +369 -0
  63. package/docs/fr/intlayer_with_angular.md +11 -16
  64. package/docs/fr/packages/solid-intlayer/useIntlayer.md +1 -1
  65. package/docs/hi/cli/doc-translate.md +1 -0
  66. package/docs/hi/cli/fill.md +1 -0
  67. package/docs/hi/configuration.md +10 -0
  68. package/docs/hi/intlayer_with_analog.md +371 -0
  69. package/docs/hi/intlayer_with_angular.md +12 -14
  70. package/docs/hi/packages/solid-intlayer/useIntlayer.md +1 -1
  71. package/docs/id/cli/doc-translate.md +1 -0
  72. package/docs/id/cli/fill.md +1 -0
  73. package/docs/id/configuration.md +10 -0
  74. package/docs/id/intlayer_with_analog.md +371 -0
  75. package/docs/id/intlayer_with_angular.md +12 -14
  76. package/docs/id/packages/solid-intlayer/useIntlayer.md +1 -1
  77. package/docs/it/agent_skills.md +53 -0
  78. package/docs/it/cli/doc-translate.md +1 -0
  79. package/docs/it/cli/fill.md +1 -0
  80. package/docs/it/configuration.md +10 -0
  81. package/docs/it/intlayer_with_analog.md +371 -0
  82. package/docs/it/intlayer_with_angular.md +12 -14
  83. package/docs/it/packages/solid-intlayer/useIntlayer.md +1 -1
  84. package/docs/ja/agent_skills.md +53 -0
  85. package/docs/ja/cli/doc-translate.md +1 -0
  86. package/docs/ja/cli/fill.md +1 -0
  87. package/docs/ja/configuration.md +10 -0
  88. package/docs/ja/intlayer_with_analog.md +365 -0
  89. package/docs/ja/intlayer_with_angular.md +12 -14
  90. package/docs/ja/packages/solid-intlayer/useIntlayer.md +1 -1
  91. package/docs/ko/agent_skills.md +53 -0
  92. package/docs/ko/cli/doc-translate.md +1 -0
  93. package/docs/ko/cli/fill.md +1 -0
  94. package/docs/ko/configuration.md +10 -0
  95. package/docs/ko/intlayer_with_analog.md +365 -0
  96. package/docs/ko/intlayer_with_angular.md +12 -14
  97. package/docs/ko/packages/solid-intlayer/useIntlayer.md +1 -1
  98. package/docs/pl/cli/doc-translate.md +1 -0
  99. package/docs/pl/cli/fill.md +1 -0
  100. package/docs/pl/configuration.md +10 -0
  101. package/docs/pl/intlayer_with_analog.md +371 -0
  102. package/docs/pl/intlayer_with_angular.md +12 -14
  103. package/docs/pl/packages/solid-intlayer/useIntlayer.md +1 -1
  104. package/docs/pt/agent_skills.md +53 -0
  105. package/docs/pt/cli/doc-translate.md +1 -0
  106. package/docs/pt/cli/fill.md +1 -0
  107. package/docs/pt/configuration.md +10 -0
  108. package/docs/pt/intlayer_with_analog.md +371 -0
  109. package/docs/pt/intlayer_with_angular.md +12 -14
  110. package/docs/pt/packages/solid-intlayer/useIntlayer.md +1 -1
  111. package/docs/ru/cli/doc-translate.md +1 -0
  112. package/docs/ru/cli/fill.md +1 -0
  113. package/docs/ru/configuration.md +18 -0
  114. package/docs/ru/intlayer_with_analog.md +371 -0
  115. package/docs/ru/intlayer_with_angular.md +12 -14
  116. package/docs/ru/packages/solid-intlayer/useIntlayer.md +1 -1
  117. package/docs/tr/cli/doc-translate.md +1 -0
  118. package/docs/tr/cli/fill.md +1 -0
  119. package/docs/tr/configuration.md +10 -0
  120. package/docs/tr/intlayer_with_analog.md +365 -0
  121. package/docs/tr/intlayer_with_angular.md +12 -14
  122. package/docs/tr/packages/solid-intlayer/useIntlayer.md +1 -1
  123. package/docs/uk/cli/doc-translate.md +1 -0
  124. package/docs/uk/cli/fill.md +1 -0
  125. package/docs/uk/configuration.md +10 -0
  126. package/docs/uk/intlayer_with_analog.md +365 -0
  127. package/docs/uk/intlayer_with_angular.md +12 -14
  128. package/docs/uk/packages/solid-intlayer/useIntlayer.md +1 -1
  129. package/docs/vi/configuration.md +10 -0
  130. package/docs/vi/intlayer_with_analog.md +365 -0
  131. package/docs/vi/intlayer_with_angular.md +12 -14
  132. package/docs/vi/packages/solid-intlayer/useIntlayer.md +1 -1
  133. package/docs/zh/agent_skills.md +53 -0
  134. package/docs/zh/configuration.md +10 -0
  135. package/docs/zh/intlayer_with_analog.md +365 -0
  136. package/docs/zh/intlayer_with_angular.md +12 -14
  137. package/docs/zh/packages/solid-intlayer/useIntlayer.md +1 -1
  138. package/package.json +8 -8
  139. package/src/generated/docs.entry.ts +20 -0
@@ -0,0 +1,371 @@
1
+ ---
2
+ createdAt: 2025-04-18
3
+ updatedAt: 2025-12-30
4
+ title: Analog i18n - अपने Analog ऐप का अनुवाद कैसे करें – गाइड 2026
5
+ description: जानें कि अपने Analog ऐप को बहुभाषी कैसे बनाया जाए। इसे अंतरराष्ट्रीयकरण (i18n) और अनुवाद करने के लिए दस्तावेज़ का पालन करें।
6
+ keywords:
7
+ - Internationalization
8
+ - Documentation
9
+ - Intlayer
10
+ - Analog
11
+ - Angular
12
+ - JavaScript
13
+ slugs:
14
+ - doc
15
+ - environment
16
+ - analog
17
+ applicationTemplate: https://github.com/aymericzip/intlayer/tree/main/examples/analog-app-template
18
+ history:
19
+ - version: 8.0.4
20
+ date: 2026-01-26
21
+ changes: Init history
22
+ ---
23
+
24
+ # Intlayer का उपयोग करके अपने Analog (Angular) ऐप का अनुवाद करें | अंतरराष्ट्रीयकरण (i18n)
25
+
26
+ ## विषय सूची
27
+
28
+ <TOC/>
29
+
30
+ ## Intlayer क्या है?
31
+
32
+ **Intlayer** एक अभिनव, ओपन-सोर्स अंतरराष्ट्रीयकरण (i18n) लाइब्रेरी है जिसे आधुनिक वेब अनुप्रयोगों में बहुभाषी समर्थन को सरल बनाने के लिए डिज़ाइन किया गया है।
33
+
34
+ Intlayer के साथ, आप यह कर सकते हैं:
35
+
36
+ - **अनुवादों को आसानी से प्रबंधित करें** घटक स्तर पर घोषणात्मक शब्दकोशों का उपयोग करके।
37
+ - **मेटाडेटा, रूट और सामग्री को गतिशील रूप से स्थानीयकृत करें**।
38
+ - **TypeScript समर्थन सुनिश्चित करें** स्वचालित रूप से उत्पन्न प्रकारों के साथ, ऑटो-कम्प्लीशन और त्रुटि पहचान में सुधार करते हुए।
39
+ - **उन्नत सुविधाओं का लाभ उठाएं**, जैसे गतिशील भाषा पहचान और स्विचिंग।
40
+
41
+ ---
42
+
43
+ ## Analog एप्लिकेशन में Intlayer सेटअप करने के लिए चरण-दर-चरण मार्गदर्शिका
44
+
45
+ <Tabs defaultTab="code">
46
+ <Tab label="Code" value="code">
47
+
48
+ <iframe
49
+ src="https://stackblitz.com/github/aymericzip/intlayer/tree/main/examples/vite-analog-app?embed=1&ctl=1&file=intlayer.config.ts"
50
+ className="m-auto overflow-hidden rounded-lg border-0 max-md:size-full max-md:h-[700px] md:aspect-16/9 md:w-full"
51
+ title="Demo CodeSandbox - How to Internationalize your application using Intlayer"
52
+ sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
53
+ loading="lazy"
54
+ />
55
+
56
+ </Tab>
57
+ </Tabs>
58
+
59
+ GitHub पर [एप्लिकेशन टेम्पलेट](https://github.com/aymericzip/intlayer/tree/main/examples/analog-app-template) देखें।
60
+
61
+ ### चरण 1: निर्भरताएँ स्थापित करें
62
+
63
+ npm का उपयोग करके आवश्यक पैकेज स्थापित करें:
64
+
65
+ ```bash packageManager="npm"
66
+ npm install intlayer angular-intlayer vite-intlayer
67
+ npx intlayer init
68
+ ```
69
+
70
+ ```bash packageManager="pnpm"
71
+ pnpm add intlayer angular-intlayer vite-intlayer
72
+ pnpm intlayer init
73
+ ```
74
+
75
+ ```bash packageManager="yarn"
76
+ yarn add intlayer angular-intlayer vite-intlayer
77
+ yarn intlayer init
78
+ ```
79
+
80
+ ```bash packageManager="bun"
81
+ bun add intlayer angular-intlayer vite-intlayer
82
+ bunx intlayer init
83
+ ```
84
+
85
+ - **intlayer**
86
+
87
+ कोर पैकेज जो कॉन्फ़िगरेशन प्रबंधन, अनुवाद, [सामग्री घोषणा](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/dictionary/content_file.md), ट्रांसपाइलेशन और [CLI कमांड](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/cli/index.md) के लिए अंतरराष्ट्रीयकरण उपकरण प्रदान करता है।
88
+
89
+ - **angular-intlayer**
90
+ वह पैकेज जो Intlayer को Angular एप्लिकेशन के साथ एकीकृत करता है। यह Angular अंतरराष्ट्रीयकरण के लिए संदर्भ प्रदाता और हुक प्रदान करता है।
91
+
92
+ - **vite-intlayer**
93
+ वह पैकेज जो Intlayer को Vite के साथ एकीकृत करता है। यह सामग्री घोषणा फ़ाइलों को संभालने के लिए एक प्लगइन प्रदान करता है और इष्टतम प्रदर्शन के लिए उपनाम (aliases) सेट करता है।
94
+
95
+ ### चरण 2: अपने प्रोजेक्ट का कॉन्फ़िगरेशन
96
+
97
+ अपने एप्लिकेशन की भाषाओं को कॉन्फ़िगर करने के लिए एक कॉन्फ़िग फ़ाइल बनाएं:
98
+
99
+ ```typescript fileName="intlayer.config.ts" codeFormat="typescript"
100
+ import { Locales, type IntlayerConfig } from "intlayer";
101
+
102
+ const config: IntlayerConfig = {
103
+ internationalization: {
104
+ locales: [
105
+ Locales.ENGLISH,
106
+ Locales.FRENCH,
107
+ Locales.SPANISH,
108
+ // आपकी अन्य भाषाएँ
109
+ ],
110
+ defaultLocale: Locales.ENGLISH,
111
+ },
112
+ };
113
+
114
+ export default config;
115
+ ```
116
+
117
+ ```javascript fileName="intlayer.config.mjs" codeFormat="esm"
118
+ import { Locales } from "intlayer";
119
+
120
+ /** @type {import('intlayer').IntlayerConfig} */
121
+ const config = {
122
+ internationalization: {
123
+ locales: [
124
+ Locales.ENGLISH,
125
+ Locales.FRENCH,
126
+ Locales.SPANISH,
127
+ // आपकी अन्य भाषाएँ
128
+ ],
129
+ defaultLocale: Locales.ENGLISH,
130
+ },
131
+ };
132
+
133
+ export default config;
134
+ ```
135
+
136
+ ```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
137
+ const { Locales } = require("intlayer");
138
+
139
+ /** @type {import('intlayer').IntlayerConfig} */
140
+ const config = {
141
+ internationalization: {
142
+ locales: [
143
+ Locales.ENGLISH,
144
+ Locales.FRENCH,
145
+ Locales.SPANISH,
146
+ // आपकी अन्य भाषाएँ
147
+ ],
148
+ defaultLocale: Locales.ENGLISH,
149
+ },
150
+ };
151
+
152
+ module.exports = config;
153
+ ```
154
+
155
+ > इस कॉन्फ़िगरेशन फ़ाइल के माध्यम से, आप स्थानीयकृत URL, मिडलवेयर रीडायरेक्शन, कुकी नाम, अपनी सामग्री घोषणाओं का स्थान और एक्सटेंशन, कंसोल में Intlayer लॉग अक्षम करना, और बहुत कुछ सेट कर सकते हैं। उपलब्ध मापदंडों की पूरी सूची के लिए, [कॉन्फ़िगरेशन दस्तावेज़](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/configuration.md) देखें।
156
+
157
+ ### चरण 3: अपने Vite कॉन्फ़िगरेशन में Intlayer एकीकृत करें
158
+
159
+ Analog के साथ Intlayer को एकीकृत करने के लिए, आपको `vite-intlayer` प्लगइन का उपयोग करने की आवश्यकता है।
160
+
161
+ अपनी `vite.config.ts` फ़ाइल को संशोधित करें:
162
+
163
+ ```typescript fileName="vite.config.ts"
164
+ import { defineConfig } from "vite";
165
+ import { intlayer } from "vite-intlayer";
166
+ import analog from "@analogjs/platform";
167
+
168
+ // https://vitejs.dev/config/
169
+ export default defineConfig(() => ({
170
+ plugins: [
171
+ analog(),
172
+ intlayer(), // Intlayer प्लगइन जोड़ें
173
+ ],
174
+ }));
175
+ ```
176
+
177
+ > `intlayer()` प्लगइन Intlayer के साथ Vite को कॉन्फ़िगर करता है। यह सामग्री घोषणा फ़ाइलों को संभालता है और इष्टतम प्रदर्शन के लिए उपनाम (aliases) सेट करता है।
178
+
179
+ ### चरण 4: अपनी सामग्री घोषित करें
180
+
181
+ अनुवाद संग्रहीत करने के लिए अपनी सामग्री घोषणाएं बनाएं और प्रबंधित करें:
182
+
183
+ ```tsx fileName="src/app/app.content.ts" contentDeclarationFormat="typescript"
184
+ import { t, type Dictionary } from "intlayer";
185
+
186
+ const appContent = {
187
+ key: "app",
188
+ content: {
189
+ title: t({
190
+ en: "Hello",
191
+ fr: "Bonjour",
192
+ es: "Hola",
193
+ hi: "नमस्ते",
194
+ }),
195
+ congratulations: t({
196
+ en: "Congratulations! Your app is running. 🎉",
197
+ fr: "Félicitations! Votre application est en cours d'exécution. 🎉",
198
+ es: "¡Felicidades! Tu aplicación está en ejecución. 🎉",
199
+ hi: "बधाई हो! आपका ऐप चल रहा है। 🎉",
200
+ }),
201
+ },
202
+ } satisfies Dictionary;
203
+
204
+ export default appContent;
205
+ ```
206
+
207
+ > आपकी सामग्री घोषणाएं आपके एप्लिकेशन में कहीं भी परिभाषित की जा सकती हैं जब तक कि वे `contentDir` निर्देशिका (डिफ़ॉल्ट रूप से, `./src`) में शामिल हों। और सामग्री घोषणा फ़ाइल एक्सटेंशन (डिफ़ॉल्ट रूप से, `.content.{json,ts,tsx,js,jsx,mjs,cjs}`) से मेल खाती हों।
208
+
209
+ > अधिक विवरण के लिए, [सामग्री घोषणा दस्तावेज़](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/dictionary/content_file.md) देखें।
210
+
211
+ ### चरण 5: अपने कोड में Intlayer का उपयोग करें
212
+
213
+ अपने Analog एप्लिकेशन में Intlayer की अंतरराष्ट्रीयकरण सुविधाओं का उपयोग करने के लिए, आपको अपने एप्लिकेशन कॉन्फ़िगरेशन में Intlayer प्रदान करने की आवश्यकता है।
214
+
215
+ ```typescript fileName="src/app/app.config.ts"
216
+ import { ApplicationConfig } from "@angular/core";
217
+ import { provideIntlayer } from "angular-intlayer";
218
+
219
+ export const appConfig: ApplicationConfig = {
220
+ providers: [
221
+ provideIntlayer(), // यहाँ Intlayer प्रदाता जोड़ें
222
+ ],
223
+ };
224
+ ```
225
+
226
+ फिर, आप किसी भी घटक के भीतर `useIntlayer` फ़ंक्शन का उपयोग कर सकते हैं।
227
+
228
+ ```typescript fileName="src/app/pages/index.page.ts"
229
+ import { Component } from "@angular/core";
230
+ import { useIntlayer } from "angular-intlayer";
231
+
232
+ @Component({
233
+ selector: "app-home",
234
+ standalone: true,
235
+ template: `
236
+ <div class="content">
237
+ <h1>{{ content().title }}</h1>
238
+ <p>{{ content().congratulations }}</p>
239
+ </div>
240
+ `,
241
+ })
242
+ export default class HomeComponent {
243
+ content = useIntlayer("app");
244
+ }
245
+ ```
246
+
247
+ Intlayer सामग्री एक `Signal` के रूप में लौटाई जाती है, इसलिए आप सिग्नल को कॉल करके मानों तक पहुँचते हैं: `content().title` ।
248
+
249
+ ### (वैकल्पिक) चरण 6: अपनी सामग्री की भाषा बदलें
250
+
251
+ अपनी सामग्री की भाषा बदलने के लिए, आप `useLocale` फ़ंक्शन द्वारा प्रदान किए गए `setLocale` फ़ंक्शन का उपयोग कर सकते हैं। यह आपको एप्लिकेशन का लोकेल सेट करने और तदनुसार सामग्री को अपडेट करने की अनुमति देता है।
252
+
253
+ भाषाओं के बीच स्विच करने के लिए एक घटक बनाएं:
254
+
255
+ ```typescript fileName="src/app/locale-switcher.component.ts"
256
+ import { Component } from "@angular/core";
257
+ import { CommonModule } from "@angular/common";
258
+ import { useLocale } from "angular-intlayer";
259
+
260
+ @Component({
261
+ selector: "app-locale-switcher",
262
+ standalone: true,
263
+ imports: [CommonModule],
264
+ template: `
265
+ <div class="locale-switcher">
266
+ <select
267
+ [value]="locale()"
268
+ (change)="setLocale($any($event.target).value)"
269
+ >
270
+ @for (loc of availableLocales; track loc) {
271
+ <option [value]="loc">{{ loc }}</option>
272
+ }
273
+ </select>
274
+ </div>
275
+ `,
276
+ styles: [
277
+ `
278
+ .locale-switcher {
279
+ margin: 1rem;
280
+ padding: 0.5rem;
281
+ border: 1px solid #ccc;
282
+ border-radius: 4px;
283
+ width: fit-content;
284
+ }
285
+ `,
286
+ ],
287
+ })
288
+ export class LocaleSwitcherComponent {
289
+ localeCtx = useLocale();
290
+
291
+ locale = this.localeCtx.locale;
292
+ availableLocales = this.localeCtx.availableLocales;
293
+ setLocale = this.localeCtx.setLocale;
294
+ }
295
+ ```
296
+
297
+ फिर, अपने पेजों में इस घटक का उपयोग करें:
298
+
299
+ ```typescript fileName="src/app/pages/index.page.ts"
300
+ import { Component } from "@angular/core";
301
+ import { useIntlayer } from "angular-intlayer";
302
+ import { LocaleSwitcherComponent } from "../locale-switcher.component";
303
+
304
+ @Component({
305
+ selector: "app-home",
306
+ standalone: true,
307
+ imports: [LocaleSwitcherComponent],
308
+ template: `
309
+ <app-locale-switcher></app-locale-switcher>
310
+ <div class="content">
311
+ <h1>{{ content().title }}</h1>
312
+ <p>{{ content().congratulations }}</p>
313
+ </div>
314
+ `,
315
+ })
316
+ export default class HomeComponent {
317
+ content = useIntlayer("app");
318
+ }
319
+ ```
320
+
321
+ ### TypeScript कॉन्फ़िगर करें
322
+
323
+ Intlayer TypeScript के लाभों को प्राप्त करने और आपके कोडबेस को मजबूत बनाने के लिए मॉड्यूल ऑग्मेंटेशन का उपयोग करता है।
324
+
325
+ ![Autocompletion](https://github.com/aymericzip/intlayer/blob/main/docs/assets/autocompletion.png?raw=true)
326
+
327
+ ![Translation error](https://github.com/aymericzip/intlayer/blob/main/docs/assets/translation_error.png?raw=true)
328
+
329
+ सुनिश्चित करें कि आपके TypeScript कॉन्फ़िगरेशन में स्वचालित रूप से उत्पन्न प्रकार शामिल हैं।
330
+
331
+ ```json5 fileName="tsconfig.json"
332
+ {
333
+ // ... आपके मौजूदा TypeScript कॉन्फ़िगरेशन
334
+ "include": [
335
+ // ... आपके मौजूदा TypeScript कॉन्फ़िगरेशन
336
+ ".intlayer/**/*.ts", // स्वचालित रूप से उत्पन्न प्रकारों को शामिल करें
337
+ ],
338
+ }
339
+ ```
340
+
341
+ ### Git कॉन्फ़िगरेशन
342
+
343
+ Intlayer द्वारा उत्पन्न फ़ाइलों को अनदेखा करने की अनुशंसा की जाती है। यह आपको उन्हें अपने Git रिपॉजिटरी में कमिट करने से बचने की अनुमति देता है।
344
+
345
+ ऐसा करने के लिए, आप अपनी `.gitignore` फ़ाइल में निम्नलिखित निर्देश जोड़ सकते हैं:
346
+
347
+ ```plaintext
348
+ # Ignore the files generated by Intlayer
349
+ .intlayer
350
+ ```
351
+
352
+ ### VS Code एक्सटेंशन
353
+
354
+ Intlayer के साथ अपने विकास के अनुभव को बेहतर बनाने के लिए, आप आधिकारिक **Intlayer VS Code एक्सटेंशन** स्थापित कर सकते हैं।
355
+
356
+ [VS Code Marketplace से स्थापित करें](https://marketplace.visualstudio.com/items?itemName=intlayer.intlayer-vs-code-extension)
357
+
358
+ यह एक्सटेंशन प्रदान करता है:
359
+
360
+ - अनुवाद कुंजियों के लिए **ऑटो-कम्प्लीशन**।
361
+ - अनुपस्थित अनुवादों के लिए **रीयल-टाइम त्रुटि पहचान**।
362
+ - अनुवादित सामग्री का **इनलाइन पूर्वावलोकन**।
363
+ - अनुवादों को आसानी से बनाने और अपडेट करने के लिए **त्वरित क्रियाएं**।
364
+
365
+ एक्सटेंशन का उपयोग करने के तरीके के बारे में अधिक विवरण के लिए, [Intlayer VS Code एक्सटेंशन दस्तावेज़](https://intlayer.org/doc/vs-code-extension) देखें।
366
+
367
+ ---
368
+
369
+ ### आगे बढ़ें
370
+
371
+ आगे बढ़ने के लिए, आप [विजुअल एडिटर](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/intlayer_visual_editor.md) को लागू कर सकते हैं या [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/intlayer_CMS.md) का उपयोग करके अपनी सामग्री को बाहरी बना सकते हैं।
@@ -168,30 +168,28 @@ Angular CLI के साथ Intlayer को एकीकृत करने क
168
168
 
169
169
  सबसे पहले, कस्टम Webpack बिल्डर का उपयोग करने के लिए अपने `angular.json` को संशोधित करें। `build` और `serve` कॉन्फ़िगरेशन अपडेट करें:
170
170
 
171
- ```json fileName="angular.json"
171
+ ```json5 fileName="angular.json"
172
172
  {
173
173
  "projects": {
174
174
  "your-app-name": {
175
175
  "architect": {
176
176
  "build": {
177
- "builder": "@angular-builders/custom-webpack:browser",
177
+ "builder": "@angular-builders/custom-webpack:browser", // replace "@angular-devkit/build-angular:application",
178
178
  "options": {
179
179
  "customWebpackConfig": {
180
- "path": "./webpack.config.ts"
181
- }
182
- }
180
+ "path": "./webpack.config.ts",
181
+ "mergeStrategies": { "module.rules": "prepend" },
182
+ },
183
+ "main": "src/main.ts", // replace "browser": "src/main.ts",
184
+ // ...
185
+ },
183
186
  },
184
187
  "serve": {
185
188
  "builder": "@angular-builders/custom-webpack:dev-server",
186
- "options": {
187
- "customWebpackConfig": {
188
- "path": "./webpack.config.ts"
189
- }
190
- }
191
- }
192
- }
193
- }
194
- }
189
+ },
190
+ },
191
+ },
192
+ },
195
193
  }
196
194
  ```
197
195
 
@@ -33,7 +33,7 @@ history:
33
33
  import { useIntlayer } from "solid-intlayer";
34
34
 
35
35
  const MyComponent = () => {
36
- const content = useIntlayer("my_dictionary_key");
36
+ const content = useIntlayer("my-dictionary-key");
37
37
 
38
38
  return (
39
39
  <div>
@@ -86,6 +86,7 @@ npx intlayer doc translate
86
86
  - **`--temperature [temperature]`**: Pengaturan temperature untuk model AI.
87
87
  - **`--api-key [apiKey]`**: Berikan API key Anda sendiri untuk layanan AI.
88
88
  - **`--application-context [applicationContext]`**: Berikan konteks tambahan untuk penerjemahan AI.
89
+ - **`--data-serialization [dataSerialization]`**: Format serialisasi data yang digunakan untuk fitur AI Intlayer. Opsi: `json` (standar, andal), `toon` (lebih sedikit token, kurang konsisten).
89
90
  - **`--custom-prompt [prompt]`**: Sesuaikan prompt dasar yang digunakan untuk penerjemahan. (Catatan: Untuk sebagian besar kasus penggunaan, opsi `--custom-instructions` lebih disarankan karena memberikan kontrol yang lebih baik atas perilaku penerjemahan.)
90
91
 
91
92
  > Contoh: `npx intlayer doc translate --model deepseek-chat --provider deepseek --temperature 0.5 --api-key sk-1234567890 --application-context "My application is a cat store"`
@@ -126,6 +126,7 @@ Affected dictionary keys for processing: app, comp-test, hello-world, lang-switc
126
126
  - **`--api-key [apiKey]`**: Berikan API key Anda sendiri untuk layanan AI.
127
127
  - **`--custom-prompt [prompt]`**: Berikan prompt khusus untuk instruksi terjemahan Anda.
128
128
  - **`--application-context [applicationContext]`**: Berikan konteks tambahan untuk terjemahan AI.
129
+ - **`--data-serialization [dataSerialization]`**: Format serialisasi data yang digunakan untuk fitur AI Intlayer. Opsi: `json` (standar, andal), `toon` (lebih sedikit token, kurang konsisten).
129
130
 
130
131
  > Contoh: `npx intlayer fill --model gpt-3.5-turbo --provider openai --temperature 0.5 --api-key sk-1234567890 --application-context "Aplikasi saya adalah toko kucing"`
131
132
 
@@ -14,6 +14,9 @@ slugs:
14
14
  - concept
15
15
  - configuration
16
16
  history:
17
+ - version: 8.0.5
18
+ date: 2026-02-06
19
+ changes: Tambahkan `dataSerialization` ke konfigurasi AI
17
20
  - version: 8.0.0
18
21
  date: 2026-01-22
19
22
  changes: Move `importMode` build configuration to `dictionary` configuration.
@@ -990,6 +993,13 @@ Intlayer mendukung beberapa provider AI untuk fleksibilitas dan pilihan yang leb
990
993
  - _Contoh_: `'https://api.openai.com/v1'`
991
994
  - _Catatan_: Dapat digunakan untuk menunjuk ke endpoint API AI lokal atau kustom.
992
995
 
996
+ - **dataSerialization**:
997
+ - _Tipe_: `'json' | 'toon'`
998
+ - _Default_: `'json'`
999
+ - _Deskripsi_: Format serialisasi data yang digunakan untuk fitur AI Intlayer.
1000
+ - _Contoh_: `'toon'`
1001
+ - _Catatan_: `json`: Standar, andal; menggunakan lebih banyak token. `toon`: Lebih sedikit token, kurang konsisten dibandingkan JSON.
1002
+
993
1003
  ### Konfigurasi Build
994
1004
 
995
1005
  Pengaturan yang mengontrol bagaimana Intlayer mengoptimalkan dan membangun internasionalisasi aplikasi Anda.