@intlayer/docs 8.3.0-canary.4 → 8.3.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/compiler.md +84 -49
- package/docs/ar/configuration.md +80 -37
- package/docs/ar/intlayer_with_nextjs_16.md +174 -1
- package/docs/ar/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/ar/intlayer_with_react_router_v7.md +224 -1
- package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/ar/intlayer_with_svelte_kit.md +175 -2
- package/docs/ar/intlayer_with_tanstack.md +176 -1
- package/docs/ar/intlayer_with_vite+preact.md +174 -1
- package/docs/ar/intlayer_with_vite+react.md +174 -1
- package/docs/ar/intlayer_with_vite+solid.md +174 -1
- package/docs/ar/intlayer_with_vite+svelte.md +174 -1
- package/docs/ar/intlayer_with_vite+vue.md +174 -1
- package/docs/de/compiler.md +83 -48
- package/docs/de/configuration.md +434 -212
- package/docs/de/intlayer_with_nextjs_16.md +176 -1
- package/docs/de/intlayer_with_nextjs_compiler.md +106 -349
- package/docs/de/intlayer_with_react_router_v7.md +225 -2
- package/docs/de/intlayer_with_react_router_v7_fs_routes.md +221 -79
- package/docs/de/intlayer_with_svelte_kit.md +158 -2
- package/docs/de/intlayer_with_tanstack.md +159 -1
- package/docs/de/intlayer_with_vite+preact.md +157 -1
- package/docs/de/intlayer_with_vite+react.md +157 -1
- package/docs/de/intlayer_with_vite+solid.md +159 -3
- package/docs/de/intlayer_with_vite+svelte.md +157 -1
- package/docs/de/intlayer_with_vite+vue.md +157 -1
- package/docs/en/compiler.md +60 -33
- package/docs/en/configuration.md +80 -57
- package/docs/en/intlayer_with_nextjs_16.md +176 -0
- package/docs/en/intlayer_with_nextjs_compiler.md +179 -1
- package/docs/en/intlayer_with_react_router_v7.md +159 -0
- package/docs/en/intlayer_with_react_router_v7_fs_routes.md +159 -0
- package/docs/en/intlayer_with_svelte_kit.md +159 -0
- package/docs/en/intlayer_with_tanstack.md +160 -1
- package/docs/en/intlayer_with_vite+preact.md +159 -0
- package/docs/en/intlayer_with_vite+react.md +159 -0
- package/docs/en/intlayer_with_vite+solid.md +148 -27
- package/docs/en/intlayer_with_vite+svelte.md +159 -0
- package/docs/en/intlayer_with_vite+vue.md +142 -41
- package/docs/en-GB/compiler.md +66 -34
- package/docs/en-GB/configuration.md +78 -36
- package/docs/es/compiler.md +83 -48
- package/docs/es/configuration.md +429 -206
- package/docs/es/intlayer_with_adonisjs.md +1 -1
- package/docs/es/intlayer_with_express.md +1 -1
- package/docs/es/intlayer_with_fastify.md +1 -1
- package/docs/es/intlayer_with_hono.md +1 -1
- package/docs/es/intlayer_with_nestjs.md +1 -1
- package/docs/es/intlayer_with_nextjs_16.md +176 -3
- package/docs/es/intlayer_with_nextjs_compiler.md +175 -2
- package/docs/es/intlayer_with_nuxt.md +1 -1
- package/docs/es/intlayer_with_react_router_v7.md +227 -4
- package/docs/es/intlayer_with_react_router_v7_fs_routes.md +162 -4
- package/docs/es/intlayer_with_svelte_kit.md +158 -2
- package/docs/es/intlayer_with_tanstack.md +160 -2
- package/docs/es/intlayer_with_vite+preact.md +162 -6
- package/docs/es/intlayer_with_vite+react.md +160 -4
- package/docs/es/intlayer_with_vite+solid.md +163 -7
- package/docs/es/intlayer_with_vite+svelte.md +157 -1
- package/docs/es/intlayer_with_vite+vue.md +165 -9
- package/docs/fr/compiler.md +81 -46
- package/docs/fr/configuration.md +355 -134
- package/docs/fr/intlayer_with_adonisjs.md +1 -1
- package/docs/fr/intlayer_with_express.md +1 -1
- package/docs/fr/intlayer_with_fastify.md +1 -1
- package/docs/fr/intlayer_with_hono.md +1 -1
- package/docs/fr/intlayer_with_nestjs.md +1 -1
- package/docs/fr/intlayer_with_nextjs_16.md +183 -7
- package/docs/fr/intlayer_with_nextjs_compiler.md +179 -3
- package/docs/fr/intlayer_with_react_router_v7.md +229 -3
- package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +237 -6
- package/docs/fr/intlayer_with_svelte_kit.md +158 -2
- package/docs/fr/intlayer_with_tanstack.md +159 -1
- package/docs/fr/intlayer_with_vite+preact.md +164 -8
- package/docs/fr/intlayer_with_vite+react.md +162 -6
- package/docs/fr/intlayer_with_vite+solid.md +163 -7
- package/docs/fr/intlayer_with_vite+svelte.md +157 -1
- package/docs/fr/intlayer_with_vite+vue.md +164 -8
- package/docs/hi/compiler.md +81 -46
- package/docs/hi/configuration.md +87 -44
- package/docs/hi/intlayer_with_nextjs_16.md +174 -1
- package/docs/hi/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/hi/intlayer_with_react_router_v7.md +224 -1
- package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/hi/intlayer_with_svelte_kit.md +158 -2
- package/docs/hi/intlayer_with_tanstack.md +159 -1
- package/docs/hi/intlayer_with_vite+preact.md +157 -1
- package/docs/hi/intlayer_with_vite+react.md +157 -1
- package/docs/hi/intlayer_with_vite+solid.md +157 -1
- package/docs/hi/intlayer_with_vite+svelte.md +157 -1
- package/docs/hi/intlayer_with_vite+vue.md +157 -1
- package/docs/id/compiler.md +84 -51
- package/docs/id/configuration.md +83 -45
- package/docs/id/intlayer_with_nextjs_16.md +174 -1
- package/docs/id/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/id/intlayer_with_react_router_v7.md +224 -1
- package/docs/id/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/id/intlayer_with_svelte_kit.md +158 -2
- package/docs/id/intlayer_with_tanstack.md +159 -1
- package/docs/id/intlayer_with_vite+preact.md +157 -1
- package/docs/id/intlayer_with_vite+react.md +157 -1
- package/docs/id/intlayer_with_vite+solid.md +157 -1
- package/docs/id/intlayer_with_vite+svelte.md +157 -1
- package/docs/id/intlayer_with_vite+vue.md +157 -1
- package/docs/it/compiler.md +81 -46
- package/docs/it/configuration.md +426 -204
- package/docs/it/intlayer_with_nextjs_16.md +174 -1
- package/docs/it/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/it/intlayer_with_react_router_v7.md +225 -2
- package/docs/it/intlayer_with_react_router_v7_fs_routes.md +226 -2
- package/docs/it/intlayer_with_svelte_kit.md +158 -2
- package/docs/it/intlayer_with_tanstack.md +159 -1
- package/docs/it/intlayer_with_vite+preact.md +157 -1
- package/docs/it/intlayer_with_vite+react.md +157 -1
- package/docs/it/intlayer_with_vite+solid.md +159 -3
- package/docs/it/intlayer_with_vite+svelte.md +157 -1
- package/docs/it/intlayer_with_vite+vue.md +157 -1
- package/docs/ja/compiler.md +94 -58
- package/docs/ja/configuration.md +88 -45
- package/docs/ja/intlayer_with_nextjs_16.md +174 -1
- package/docs/ja/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/ja/intlayer_with_react_router_v7.md +184 -394
- package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +226 -2
- package/docs/ja/intlayer_with_svelte_kit.md +119 -595
- package/docs/ja/intlayer_with_tanstack.md +131 -642
- package/docs/ja/intlayer_with_vite+preact.md +111 -1231
- package/docs/ja/intlayer_with_vite+react.md +129 -1304
- package/docs/ja/intlayer_with_vite+solid.md +159 -3
- package/docs/ja/intlayer_with_vite+svelte.md +157 -1
- package/docs/ja/intlayer_with_vite+vue.md +157 -1
- package/docs/ko/compiler.md +88 -52
- package/docs/ko/configuration.md +87 -44
- package/docs/ko/intlayer_with_nextjs_16.md +174 -1
- package/docs/ko/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/ko/intlayer_with_react_router_v7.md +225 -2
- package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +226 -2
- package/docs/ko/intlayer_with_svelte_kit.md +158 -2
- package/docs/ko/intlayer_with_tanstack.md +159 -1
- package/docs/ko/intlayer_with_vite+preact.md +157 -1
- package/docs/ko/intlayer_with_vite+react.md +157 -1
- package/docs/ko/intlayer_with_vite+solid.md +159 -3
- package/docs/ko/intlayer_with_vite+svelte.md +157 -1
- package/docs/ko/intlayer_with_vite+vue.md +157 -1
- package/docs/pl/compiler.md +84 -51
- package/docs/pl/configuration.md +83 -37
- package/docs/pl/intlayer_with_nextjs_16.md +174 -1
- package/docs/pl/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/pl/intlayer_with_react_router_v7.md +224 -1
- package/docs/pl/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/pl/intlayer_with_svelte_kit.md +158 -2
- package/docs/pl/intlayer_with_tanstack.md +159 -1
- package/docs/pl/intlayer_with_vite+preact.md +157 -1
- package/docs/pl/intlayer_with_vite+react.md +157 -1
- package/docs/pl/intlayer_with_vite+solid.md +157 -1
- package/docs/pl/intlayer_with_vite+svelte.md +157 -1
- package/docs/pl/intlayer_with_vite+vue.md +157 -1
- package/docs/pt/compiler.md +81 -46
- package/docs/pt/configuration.md +404 -194
- package/docs/pt/intlayer_with_nextjs_16.md +174 -1
- package/docs/pt/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/pt/intlayer_with_react_router_v7.md +224 -1
- package/docs/pt/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/pt/intlayer_with_svelte_kit.md +158 -2
- package/docs/pt/intlayer_with_tanstack.md +159 -1
- package/docs/pt/intlayer_with_vite+preact.md +157 -1
- package/docs/pt/intlayer_with_vite+react.md +157 -1
- package/docs/pt/intlayer_with_vite+solid.md +157 -1
- package/docs/pt/intlayer_with_vite+svelte.md +157 -1
- package/docs/pt/intlayer_with_vite+vue.md +157 -1
- package/docs/ru/compiler.md +90 -57
- package/docs/ru/configuration.md +76 -46
- package/docs/ru/intlayer_with_nextjs_16.md +174 -1
- package/docs/ru/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/ru/intlayer_with_react_router_v7.md +224 -1
- package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/ru/intlayer_with_svelte_kit.md +158 -2
- package/docs/ru/intlayer_with_tanstack.md +159 -1
- package/docs/ru/intlayer_with_vite+preact.md +157 -1
- package/docs/ru/intlayer_with_vite+react.md +157 -1
- package/docs/ru/intlayer_with_vite+solid.md +157 -1
- package/docs/ru/intlayer_with_vite+svelte.md +157 -1
- package/docs/ru/intlayer_with_vite+vue.md +157 -1
- package/docs/tr/compiler.md +85 -52
- package/docs/tr/configuration.md +83 -40
- package/docs/tr/intlayer_with_nextjs_16.md +174 -1
- package/docs/tr/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/tr/intlayer_with_react_router_v7.md +224 -1
- package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/tr/intlayer_with_svelte_kit.md +158 -2
- package/docs/tr/intlayer_with_tanstack.md +159 -1
- package/docs/tr/intlayer_with_vite+preact.md +157 -1
- package/docs/tr/intlayer_with_vite+react.md +157 -1
- package/docs/tr/intlayer_with_vite+solid.md +157 -1
- package/docs/tr/intlayer_with_vite+svelte.md +157 -1
- package/docs/tr/intlayer_with_vite+vue.md +157 -1
- package/docs/uk/compiler.md +96 -61
- package/docs/uk/configuration.md +83 -37
- package/docs/uk/intlayer_with_nextjs_16.md +174 -1
- package/docs/uk/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/uk/intlayer_with_react_router_v7.md +224 -1
- package/docs/uk/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/uk/intlayer_with_svelte_kit.md +157 -1
- package/docs/uk/intlayer_with_tanstack.md +159 -1
- package/docs/uk/intlayer_with_vite+preact.md +157 -1
- package/docs/uk/intlayer_with_vite+react.md +157 -1
- package/docs/uk/intlayer_with_vite+solid.md +157 -1
- package/docs/uk/intlayer_with_vite+svelte.md +157 -1
- package/docs/uk/intlayer_with_vite+vue.md +157 -1
- package/docs/vi/compiler.md +85 -50
- package/docs/vi/configuration.md +85 -39
- package/docs/vi/intlayer_with_nextjs_16.md +174 -1
- package/docs/vi/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/vi/intlayer_with_react_router_v7.md +224 -1
- package/docs/vi/intlayer_with_react_router_v7_fs_routes.md +225 -1
- package/docs/vi/intlayer_with_svelte_kit.md +158 -2
- package/docs/vi/intlayer_with_tanstack.md +159 -1
- package/docs/vi/intlayer_with_vite+preact.md +157 -1
- package/docs/vi/intlayer_with_vite+react.md +157 -1
- package/docs/vi/intlayer_with_vite+solid.md +157 -1
- package/docs/vi/intlayer_with_vite+svelte.md +157 -1
- package/docs/vi/intlayer_with_vite+vue.md +157 -1
- package/docs/zh/compiler.md +84 -49
- package/docs/zh/configuration.md +80 -37
- package/docs/zh/intlayer_with_adonisjs.md +1 -1
- package/docs/zh/intlayer_with_express.md +1 -1
- package/docs/zh/intlayer_with_fastify.md +1 -1
- package/docs/zh/intlayer_with_hono.md +1 -1
- package/docs/zh/intlayer_with_nestjs.md +1 -1
- package/docs/zh/intlayer_with_nextjs_16.md +174 -1
- package/docs/zh/intlayer_with_nextjs_compiler.md +174 -1
- package/docs/zh/intlayer_with_react_router_v7.md +227 -4
- package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +228 -4
- package/docs/zh/intlayer_with_svelte_kit.md +158 -2
- package/docs/zh/intlayer_with_tanstack.md +159 -1
- package/docs/zh/intlayer_with_vite+preact.md +159 -3
- package/docs/zh/intlayer_with_vite+react.md +157 -1
- package/docs/zh/intlayer_with_vite+solid.md +161 -5
- package/docs/zh/intlayer_with_vite+svelte.md +157 -1
- package/docs/zh/intlayer_with_vite+vue.md +158 -2
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-09-04
|
|
3
|
-
updatedAt:
|
|
3
|
+
updatedAt: 2026-03-12
|
|
4
4
|
title: React Router v7 i18n - React Router v7 ऐप कैसे अनुवाद करें 2026 में
|
|
5
5
|
description: जानें कि कैसे Intlayer का उपयोग करके अपने React Router v7 एप्लिकेशन में अंतरराष्ट्रीयकरण (i18n) जोड़ें। इस व्यापक गाइड का पालन करें ताकि आपका ऐप बहुभाषी और locale-aware रूटिंग के साथ हो।
|
|
6
6
|
keywords:
|
|
@@ -508,6 +508,229 @@ export default function RootLayout() {
|
|
|
508
508
|
}
|
|
509
509
|
```
|
|
510
510
|
|
|
511
|
+
### (वैकल्पिक) कदम 1 : अपने घटकों की सामग्री निकालें
|
|
512
|
+
|
|
513
|
+
यदि आपके पास मौजूदा कोडबेस है, तो हजारों फ़ाइलों को बदलना समय लेने वाला हो सकता है।
|
|
514
|
+
|
|
515
|
+
इस प्रक्रिया को आसान बनाने के लिए, Intlayer आपके घटकों को बदलने और सामग्री निकालने के लिए एक [कंपाइलर](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/compiler.md) / [एक्सट्रैक्टर](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/cli/extract.md) का प्रस्ताव करता है।
|
|
516
|
+
|
|
517
|
+
इसे सेट करने के लिए, आप अपनी `intlayer.config.ts` फ़ाइल में एक `compiler` अनुभाग जोड़ सकते हैं:
|
|
518
|
+
|
|
519
|
+
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
520
|
+
import { type IntlayerConfig } from "intlayer";
|
|
521
|
+
|
|
522
|
+
const config: IntlayerConfig = {
|
|
523
|
+
// ... आपका शेष कॉन्फ़िगरेशन
|
|
524
|
+
compiler: {
|
|
525
|
+
/**
|
|
526
|
+
* इंगित करता है कि क्या कंपाइलर सक्षम होना चाहिए।
|
|
527
|
+
*/
|
|
528
|
+
enabled: true,
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* आउटपुट फ़ाइलों का पथ परिभाषित करता है
|
|
532
|
+
*/
|
|
533
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* इंगित करता है कि क्या घटकों को बदलने के बाद सहेजा जाना चाहिए। उस तरह से, कंपाइलर को ऐप बदलने के लिए केवल एक बार चलाया जा सकता है, और फिर इसे हटाया जा सकता है।
|
|
537
|
+
*/
|
|
538
|
+
saveComponents: false,
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* शब्दकोश कुंजी उपसर्ग
|
|
542
|
+
*/
|
|
543
|
+
dictionaryKeyPrefix: "",
|
|
544
|
+
},
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
export default config;
|
|
548
|
+
```
|
|
549
|
+
|
|
550
|
+
```javascript fileName="intlayer.config.mjs" codeFormat="esm"
|
|
551
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
552
|
+
const config = {
|
|
553
|
+
// ... आपका शेष कॉन्फ़िगरेशन
|
|
554
|
+
compiler: {
|
|
555
|
+
/**
|
|
556
|
+
* इंगित करता है कि क्या कंपाइलर सक्षम होना चाहिए।
|
|
557
|
+
*/
|
|
558
|
+
enabled: true,
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* आउटपुट फ़ाइलों का पथ परिभाषित करता है
|
|
562
|
+
*/
|
|
563
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* इंगित करता है कि क्या घटकों को बदलने के बाद सहेजा जाना चाहिए। उस तरह से, कंपाइलर को ऐप बदलने के लिए केवल एक बार चलाया जा सकता है, और फिर इसे हटाया जा सकता है।
|
|
567
|
+
*/
|
|
568
|
+
saveComponents: false,
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* शब्दकोश कुंजी उपसर्ग
|
|
572
|
+
*/
|
|
573
|
+
dictionaryKeyPrefix: "",
|
|
574
|
+
},
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
export default config;
|
|
578
|
+
```
|
|
579
|
+
|
|
580
|
+
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
581
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
582
|
+
const config = {
|
|
583
|
+
// ... आपका शेष कॉन्फ़िगरेशन
|
|
584
|
+
compiler: {
|
|
585
|
+
/**
|
|
586
|
+
* इंगित करता है कि क्या कंपाइलर सक्षम होना चाहिए।
|
|
587
|
+
*/
|
|
588
|
+
enabled: true,
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* आउटपुट फ़ाइलों का पथ परिभाषित करता है
|
|
592
|
+
*/
|
|
593
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* इंगित करता है कि क्या घटकों को बदलने के बाद सहेजा जाना चाहिए। उस तरह से, कंपाइलर को ऐप बदलने के लिए केवल एक बार चलाया जा सकता है, और फिर इसे हटाया जा सकता है।
|
|
597
|
+
*/
|
|
598
|
+
saveComponents: false,
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* शब्दकोश कुंजी उपसर्ग
|
|
602
|
+
*/
|
|
603
|
+
dictionaryKeyPrefix: "",
|
|
604
|
+
},
|
|
605
|
+
};
|
|
606
|
+
|
|
607
|
+
module.exports = config;
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
<Tabs>
|
|
611
|
+
<Tab value='निकालें कमांड'>
|
|
612
|
+
|
|
613
|
+
अपने घटकों को बदलने और सामग्री निकालने के लिए एक्सट्रैक्टर चलाएँ
|
|
614
|
+
|
|
615
|
+
```bash packageManager="npm"
|
|
616
|
+
npx intlayer extract
|
|
617
|
+
```
|
|
618
|
+
|
|
619
|
+
```bash packageManager="pnpm"
|
|
620
|
+
pnpm intlayer extract
|
|
621
|
+
```
|
|
622
|
+
|
|
623
|
+
```bash packageManager="yarn"
|
|
624
|
+
yarn intlayer extract
|
|
625
|
+
```
|
|
626
|
+
|
|
627
|
+
```bash packageManager="bun"
|
|
628
|
+
bunx intlayer extract
|
|
629
|
+
```
|
|
630
|
+
|
|
631
|
+
</Tab>
|
|
632
|
+
<Tab value='बैबेल कंपाइलर'>
|
|
633
|
+
|
|
634
|
+
intlayerCompiler प्लगइन शामिल करने के लिए अपनी `vite.config.ts` अपडेट करें:
|
|
635
|
+
|
|
636
|
+
```ts fileName="vite.config.ts"
|
|
637
|
+
import { defineConfig } from "vite";
|
|
638
|
+
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
639
|
+
|
|
640
|
+
export default defineConfig({
|
|
641
|
+
plugins: [
|
|
642
|
+
intlayer(),
|
|
643
|
+
intlayerCompiler(), // कंपाइलर प्लगइन जोड़ता है
|
|
644
|
+
],
|
|
645
|
+
});
|
|
646
|
+
```
|
|
647
|
+
|
|
648
|
+
```bash packageManager="npm"
|
|
649
|
+
npm run build # या npm run dev
|
|
650
|
+
```
|
|
651
|
+
|
|
652
|
+
```bash packageManager="pnpm"
|
|
653
|
+
pnpm run build # Or pnpm run dev
|
|
654
|
+
```
|
|
655
|
+
|
|
656
|
+
```bash packageManager="yarn"
|
|
657
|
+
yarn build # Or yarn dev
|
|
658
|
+
```
|
|
659
|
+
|
|
660
|
+
```bash packageManager="bun"
|
|
661
|
+
bun run build # Or bun run dev
|
|
662
|
+
```
|
|
663
|
+
|
|
664
|
+
</Tab>
|
|
665
|
+
</Tabs>
|
|
666
|
+
|
|
667
|
+
---
|
|
668
|
+
|
|
669
|
+
## Configure TypeScript
|
|
670
|
+
|
|
671
|
+
Intlayer uses module augmentation to get benefits of TypeScript and make your codebase stronger.
|
|
672
|
+
|
|
673
|
+
Ensure your TypeScript configuration includes the autogenerated types:
|
|
674
|
+
|
|
675
|
+
```json5 fileName="tsconfig.json"
|
|
676
|
+
{
|
|
677
|
+
// ... your existing configurations
|
|
678
|
+
include: [
|
|
679
|
+
// ... your existing includes
|
|
680
|
+
".intlayer/**/*.ts", // Include the auto-generated types
|
|
681
|
+
],
|
|
682
|
+
}
|
|
683
|
+
```
|
|
684
|
+
|
|
685
|
+
---
|
|
686
|
+
|
|
687
|
+
## Git Configuration
|
|
688
|
+
|
|
689
|
+
It is recommended to ignore the files generated by Intlayer. This allows you to avoid committing them to your Git repository.
|
|
690
|
+
|
|
691
|
+
To do this, you can add the following instructions to your `.gitignore` file:
|
|
692
|
+
|
|
693
|
+
```plaintext fileName=".gitignore"
|
|
694
|
+
# Ignore the files generated by Intlayer
|
|
695
|
+
.intlayer
|
|
696
|
+
```
|
|
697
|
+
|
|
698
|
+
---
|
|
699
|
+
|
|
700
|
+
## VS Code Extension
|
|
701
|
+
|
|
702
|
+
To improve your development experience with Intlayer, you can install the official **Intlayer VS Code Extension**.
|
|
703
|
+
|
|
704
|
+
[Install from the VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=intlayer.intlayer-vs-code-extension)
|
|
705
|
+
|
|
706
|
+
This extension provides:
|
|
707
|
+
|
|
708
|
+
- **Autocompletion** for translation keys.
|
|
709
|
+
- **Real-time error detection** for missing translations.
|
|
710
|
+
- **Inline previews** of translated content.
|
|
711
|
+
- **Quick actions** to easily create and update translations.
|
|
712
|
+
|
|
713
|
+
For more details on how to use the extension, refer to the [Intlayer VS Code Extension documentation](https://intlayer.org/doc/vs-code-extension).
|
|
714
|
+
|
|
715
|
+
---
|
|
716
|
+
|
|
717
|
+
## Go Further
|
|
718
|
+
|
|
719
|
+
To go further, you can implement the [visual editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_visual_editor.md) or externalize your content using the [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_CMS.md).
|
|
720
|
+
|
|
721
|
+
---
|
|
722
|
+
|
|
723
|
+
## Documentation References
|
|
724
|
+
|
|
725
|
+
- [Intlayer Documentation](https://intlayer.org)
|
|
726
|
+
- [React Router v7 Documentation](https://reactrouter.com/)
|
|
727
|
+
- [useIntlayer hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/react-intlayer/useIntlayer.md)
|
|
728
|
+
- [useLocale hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/react-intlayer/useLocale.md)
|
|
729
|
+
- [Content Declaration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/content_file.md)
|
|
730
|
+
- [Configuration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/configuration.md)
|
|
731
|
+
|
|
732
|
+
This comprehensive guide provides everything you need to integrate Intlayer with React Router v7 for a fully internationalized application with locale-aware routing and TypeScript support.
|
|
733
|
+
|
|
511
734
|
### चरण 11: मिडलवेयर जोड़ें (वैकल्पिक)
|
|
512
735
|
|
|
513
736
|
आप अपने एप्लिकेशन में सर्वर-साइड रूटिंग जोड़ने के लिए `intlayerProxy` का भी उपयोग कर सकते हैं। यह प्लगइन URL के आधार पर वर्तमान लोकल का स्वचालित रूप से पता लगाएगा और उपयुक्त लोकल कुकी सेट करेगा। यदि कोई लोकल निर्दिष्ट नहीं है, तो प्लगइन उपयोगकर्ता के ब्राउज़र भाषा प्राथमिकताओं के आधार पर सबसे उपयुक्त लोकल निर्धारित करेगा। यदि कोई लोकल पता नहीं चलता है, तो यह डिफ़ॉल्ट लोकल पर पुनः निर्देशित करेगा।
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-09-04
|
|
3
|
-
updatedAt:
|
|
3
|
+
updatedAt: 2026-03-12
|
|
4
4
|
title: React Router v7 i18n - React Router v7 ऐप कैसे अनुवाद करें 2026 में
|
|
5
5
|
description: जानें कि कैसे Intlayer का उपयोग करके अपने React Router v7 एप्लिकेशन में अंतरराष्ट्रीयकरण (i18n) जोड़ें। इस व्यापक गाइड का पालन करें ताकि आपका ऐप बहुभाषी और locale-aware रूटिंग के साथ हो।
|
|
6
6
|
keywords:
|
|
@@ -454,6 +454,230 @@ export default function RootLayout() {
|
|
|
454
454
|
}
|
|
455
455
|
```
|
|
456
456
|
|
|
457
|
+
### (वैकल्पिक) कदम 1 : अपने घटकों की सामग्री निकालें
|
|
458
|
+
|
|
459
|
+
यदि आपके पास मौजूदा कोडबेस है, तो हजारों फ़ाइलों को बदलना समय लेने वाला हो सकता है।
|
|
460
|
+
|
|
461
|
+
इस प्रक्रिया को आसान बनाने के लिए, Intlayer आपके घटकों को बदलने और सामग्री निकालने के लिए एक [कंपाइलर](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/compiler.md) / [एक्सट्रैक्टर](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/cli/extract.md) का प्रस्ताव करता है।
|
|
462
|
+
|
|
463
|
+
इसे सेट करने के लिए, आप अपनी `intlayer.config.ts` फ़ाइल में एक `compiler` अनुभाग जोड़ सकते हैं:
|
|
464
|
+
|
|
465
|
+
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
466
|
+
import { type IntlayerConfig } from "intlayer";
|
|
467
|
+
|
|
468
|
+
const config: IntlayerConfig = {
|
|
469
|
+
// ... आपका शेष कॉन्फ़िगरेशन
|
|
470
|
+
compiler: {
|
|
471
|
+
/**
|
|
472
|
+
* इंगित करता है कि क्या कंपाइलर सक्षम होना चाहिए।
|
|
473
|
+
*/
|
|
474
|
+
enabled: true,
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* आउटपुट फ़ाइलों का पथ परिभाषित करता है
|
|
478
|
+
*/
|
|
479
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* इंगित करता है कि क्या घटकों को बदलने के बाद सहेजा जाना चाहिए। उस तरह से, कंपाइलर को ऐप बदलने के लिए केवल एक बार चलाया जा सकता है, और फिर इसे हटाया जा सकता है।
|
|
483
|
+
*/
|
|
484
|
+
saveComponents: false,
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* शब्दकोश कुंजी उपसर्ग
|
|
488
|
+
*/
|
|
489
|
+
dictionaryKeyPrefix: "",
|
|
490
|
+
},
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
export default config;
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
```javascript fileName="intlayer.config.mjs" codeFormat="esm"
|
|
497
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
498
|
+
const config = {
|
|
499
|
+
// ... आपका शेष कॉन्फ़िगरेशन
|
|
500
|
+
compiler: {
|
|
501
|
+
/**
|
|
502
|
+
* इंगित करता है कि क्या कंपाइलर सक्षम होना चाहिए।
|
|
503
|
+
*/
|
|
504
|
+
enabled: true,
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* आउटपुट फ़ाइलों का पथ परिभाषित करता है
|
|
508
|
+
*/
|
|
509
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* इंगित करता है कि क्या घटकों को बदलने के बाद सहेजा जाना चाहिए। उस तरह से, कंपाइलर को ऐप बदलने के लिए केवल एक बार चलाया जा सकता है, और फिर इसे हटाया जा सकता है।
|
|
513
|
+
*/
|
|
514
|
+
saveComponents: false,
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* शब्दकोश कुंजी उपसर्ग
|
|
518
|
+
*/
|
|
519
|
+
dictionaryKeyPrefix: "",
|
|
520
|
+
},
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
export default config;
|
|
524
|
+
```
|
|
525
|
+
|
|
526
|
+
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
527
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
528
|
+
const config = {
|
|
529
|
+
// ... आपका शेष कॉन्फ़िगरेशन
|
|
530
|
+
compiler: {
|
|
531
|
+
/**
|
|
532
|
+
* इंगित करता है कि क्या कंपाइलर सक्षम होना चाहिए।
|
|
533
|
+
*/
|
|
534
|
+
enabled: true,
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* आउटपुट फ़ाइलों का पथ परिभाषित करता है
|
|
538
|
+
*/
|
|
539
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* इंगित करता है कि क्या घटकों को बदलने के बाद सहेजा जाना चाहिए। उस तरह से, कंपाइलर को ऐप बदलने के लिए केवल एक बार चलाया जा सकता है, और फिर इसे हटाया जा सकता है।
|
|
543
|
+
*/
|
|
544
|
+
saveComponents: false,
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* शब्दकोश कुंजी उपसर्ग
|
|
548
|
+
*/
|
|
549
|
+
dictionaryKeyPrefix: "",
|
|
550
|
+
},
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
module.exports = config;
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
<Tabs>
|
|
557
|
+
<Tab value='निकालें कमांड'>
|
|
558
|
+
|
|
559
|
+
अपने घटकों को बदलने और सामग्री निकालने के लिए एक्सट्रैक्टर चलाएँ
|
|
560
|
+
|
|
561
|
+
```bash packageManager="npm"
|
|
562
|
+
npx intlayer extract
|
|
563
|
+
```
|
|
564
|
+
|
|
565
|
+
```bash packageManager="pnpm"
|
|
566
|
+
pnpm intlayer extract
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
```bash packageManager="yarn"
|
|
570
|
+
yarn intlayer extract
|
|
571
|
+
```
|
|
572
|
+
|
|
573
|
+
```bash packageManager="bun"
|
|
574
|
+
bunx intlayer extract
|
|
575
|
+
```
|
|
576
|
+
|
|
577
|
+
</Tab>
|
|
578
|
+
<Tab value='बैबेल कंपाइलर'>
|
|
579
|
+
|
|
580
|
+
intlayerCompiler प्लगइन शामिल करने के लिए अपनी `vite.config.ts` अपडेट करें:
|
|
581
|
+
|
|
582
|
+
```ts fileName="vite.config.ts"
|
|
583
|
+
import { defineConfig } from "vite";
|
|
584
|
+
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
585
|
+
|
|
586
|
+
export default defineConfig({
|
|
587
|
+
plugins: [
|
|
588
|
+
intlayer(),
|
|
589
|
+
intlayerCompiler(), // कंपाइलर प्लगइन जोड़ता है
|
|
590
|
+
],
|
|
591
|
+
});
|
|
592
|
+
```
|
|
593
|
+
|
|
594
|
+
```bash packageManager="npm"
|
|
595
|
+
npm run build # या npm run dev
|
|
596
|
+
```
|
|
597
|
+
|
|
598
|
+
```bash packageManager="pnpm"
|
|
599
|
+
pnpm run build # Or pnpm run dev
|
|
600
|
+
```
|
|
601
|
+
|
|
602
|
+
```bash packageManager="yarn"
|
|
603
|
+
yarn build # Or yarn dev
|
|
604
|
+
```
|
|
605
|
+
|
|
606
|
+
```bash packageManager="bun"
|
|
607
|
+
bun run build # Or bun run dev
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
</Tab>
|
|
611
|
+
</Tabs>
|
|
612
|
+
|
|
613
|
+
---
|
|
614
|
+
|
|
615
|
+
## Configure TypeScript
|
|
616
|
+
|
|
617
|
+
Intlayer uses module augmentation to get benefits of TypeScript and make your codebase stronger.
|
|
618
|
+
|
|
619
|
+
Ensure your TypeScript configuration includes the autogenerated types:
|
|
620
|
+
|
|
621
|
+
```json5 fileName="tsconfig.json"
|
|
622
|
+
{
|
|
623
|
+
// ... your existing configurations
|
|
624
|
+
include: [
|
|
625
|
+
// ... your existing includes
|
|
626
|
+
".intlayer/**/*.ts", // Include the auto-generated types
|
|
627
|
+
],
|
|
628
|
+
}
|
|
629
|
+
```
|
|
630
|
+
|
|
631
|
+
---
|
|
632
|
+
|
|
633
|
+
## Git Configuration
|
|
634
|
+
|
|
635
|
+
It is recommended to ignore the files generated by Intlayer. This allows you to avoid committing them to your Git repository.
|
|
636
|
+
|
|
637
|
+
To do this, you can add the following instructions to your `.gitignore` file:
|
|
638
|
+
|
|
639
|
+
```plaintext fileName=".gitignore"
|
|
640
|
+
# Ignore the files generated by Intlayer
|
|
641
|
+
.intlayer
|
|
642
|
+
```
|
|
643
|
+
|
|
644
|
+
---
|
|
645
|
+
|
|
646
|
+
## VS Code Extension
|
|
647
|
+
|
|
648
|
+
To improve your development experience with Intlayer, you can install the official **Intlayer VS Code Extension**.
|
|
649
|
+
|
|
650
|
+
[Install from the VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=intlayer.intlayer-vs-code-extension)
|
|
651
|
+
|
|
652
|
+
This extension provides:
|
|
653
|
+
|
|
654
|
+
- **Autocompletion** for translation keys.
|
|
655
|
+
- **Real-time error detection** for missing translations.
|
|
656
|
+
- **Inline previews** of translated content.
|
|
657
|
+
- **Quick actions** to easily create and update translations.
|
|
658
|
+
|
|
659
|
+
For more details on how to use the extension, refer to the [Intlayer VS Code Extension documentation](https://intlayer.org/doc/vs-code-extension).
|
|
660
|
+
|
|
661
|
+
---
|
|
662
|
+
|
|
663
|
+
## Go Further
|
|
664
|
+
|
|
665
|
+
To go further, you can implement the [visual editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_visual_editor.md) or externalize your content using the [CMS](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_CMS.md).
|
|
666
|
+
|
|
667
|
+
---
|
|
668
|
+
|
|
669
|
+
## Documentation References
|
|
670
|
+
|
|
671
|
+
- [Intlayer Documentation](https://intlayer.org)
|
|
672
|
+
- [React Router v7 Documentation](https://reactrouter.com/)
|
|
673
|
+
- [React Router fs-routes Documentation](https://reactrouter.com/how-to/file-route-conventions)
|
|
674
|
+
- [useIntlayer hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/react-intlayer/useIntlayer.md)
|
|
675
|
+
- [useLocale hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/react-intlayer/useLocale.md)
|
|
676
|
+
- [Content Declaration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/content_file.md)
|
|
677
|
+
- [Configuration](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/configuration.md)
|
|
678
|
+
|
|
679
|
+
This comprehensive guide provides everything you need to integrate Intlayer with React Router v7 using file-system based routing for a fully internationalized application with locale-aware routing and TypeScript support.
|
|
680
|
+
|
|
457
681
|
### चरण 11: मिडलवेयर जोड़ें (वैकल्पिक)
|
|
458
682
|
|
|
459
683
|
आप अपने एप्लिकेशन में सर्वर-साइड रूटिंग जोड़ने के लिए `intlayerProxy` का भी उपयोग कर सकते हैं। यह प्लगइन URL के आधार पर वर्तमान लोकल का स्वचालित रूप से पता लगाएगा और उपयुक्त लोकल कुकी सेट करेगा। यदि कोई लोकल निर्दिष्ट नहीं है, तो प्लगइन उपयोगकर्ता के ब्राउज़र भाषा प्राथमिकताओं के आधार पर सबसे उपयुक्त लोकल निर्धारित करेगा। यदि कोई लोकल पता नहीं चलता है, तो यह डिफ़ॉल्ट लोकल पर पुनः निर्देशित करेगा।
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
createdAt: 2025-11-20
|
|
3
|
-
updatedAt:
|
|
3
|
+
updatedAt: 2026-03-12
|
|
4
4
|
title: SvelteKit i18n - SvelteKit ऐप कैसे अनुवाद करें 2026 में
|
|
5
5
|
description: जानें कि अपनी SvelteKit वेबसाइट को बहुभाषी कैसे बनाएं। Server-Side Rendering (SSR) का उपयोग करके इसे अंतरराष्ट्रीयकृत (i18n) और अनुवादित करने के लिए दस्तावेज़ का पालन करें।
|
|
6
6
|
keywords:
|
|
@@ -185,7 +185,7 @@ export default heroContent;
|
|
|
185
185
|
|
|
186
186
|
> **नोट:** `useIntlayer` एक Svelte store लौटाता है, इसलिए इसके reactive मान तक पहुँचने के लिए आपको `---
|
|
187
187
|
> createdAt: 2025-11-20
|
|
188
|
-
> updatedAt:
|
|
188
|
+
> updatedAt: 2026-03-12
|
|
189
189
|
> title: अपने SvelteKit ऐप का अनुवाद कैसे करें – i18n गाइड 2026
|
|
190
190
|
> description: जानें कि अपनी SvelteKit वेबसाइट को बहुभाषी कैसे बनाएं। Server-Side Rendering (SSR) का उपयोग करके इसे अंतरराष्ट्रीयकृत (i18n) और अनुवादित करने के लिए दस्तावेज़ का पालन करें।
|
|
191
191
|
> keywords:
|
|
@@ -744,6 +744,162 @@ intlayer संपादक चयनकर्ता को विज़ुअ
|
|
|
744
744
|
|
|
745
745
|
---
|
|
746
746
|
|
|
747
|
+
### (वैकल्पिक) कदम 1 : अपने घटकों की सामग्री निकालें
|
|
748
|
+
|
|
749
|
+
यदि आपके पास मौजूदा कोडबेस है, तो हजारों फ़ाइलों को बदलना समय लेने वाला हो सकता है।
|
|
750
|
+
|
|
751
|
+
इस प्रक्रिया को आसान बनाने के लिए, Intlayer आपके घटकों को बदलने और सामग्री निकालने के लिए एक [कंपाइलर](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/compiler.md) / [एक्सट्रैक्टर](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/cli/extract.md) का प्रस्ताव करता है।
|
|
752
|
+
|
|
753
|
+
इसे सेट करने के लिए, आप अपनी `intlayer.config.ts` फ़ाइल में एक `compiler` अनुभाग जोड़ सकते हैं:
|
|
754
|
+
|
|
755
|
+
```typescript fileName="intlayer.config.ts" codeFormat="typescript"
|
|
756
|
+
import { type IntlayerConfig } from "intlayer";
|
|
757
|
+
|
|
758
|
+
const config: IntlayerConfig = {
|
|
759
|
+
// ... आपका शेष कॉन्फ़िगरेशन
|
|
760
|
+
compiler: {
|
|
761
|
+
/**
|
|
762
|
+
* इंगित करता है कि क्या कंपाइलर सक्षम होना चाहिए।
|
|
763
|
+
*/
|
|
764
|
+
enabled: true,
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* आउटपुट फ़ाइलों का पथ परिभाषित करता है
|
|
768
|
+
*/
|
|
769
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* इंगित करता है कि क्या घटकों को बदलने के बाद सहेजा जाना चाहिए। उस तरह से, कंपाइलर को ऐप बदलने के लिए केवल एक बार चलाया जा सकता है, और फिर इसे हटाया जा सकता है।
|
|
773
|
+
*/
|
|
774
|
+
saveComponents: false,
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* शब्दकोश कुंजी उपसर्ग
|
|
778
|
+
*/
|
|
779
|
+
dictionaryKeyPrefix: "",
|
|
780
|
+
},
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
export default config;
|
|
784
|
+
```
|
|
785
|
+
|
|
786
|
+
```javascript fileName="intlayer.config.mjs" codeFormat="esm"
|
|
787
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
788
|
+
const config = {
|
|
789
|
+
// ... आपका शेष कॉन्फ़िगरेशन
|
|
790
|
+
compiler: {
|
|
791
|
+
/**
|
|
792
|
+
* इंगित करता है कि क्या कंपाइलर सक्षम होना चाहिए।
|
|
793
|
+
*/
|
|
794
|
+
enabled: true,
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* आउटपुट फ़ाइलों का पथ परिभाषित करता है
|
|
798
|
+
*/
|
|
799
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* इंगित करता है कि क्या घटकों को बदलने के बाद सहेजा जाना चाहिए। उस तरह से, कंपाइलर को ऐप बदलने के लिए केवल एक बार चलाया जा सकता है, और फिर इसे हटाया जा सकता है।
|
|
803
|
+
*/
|
|
804
|
+
saveComponents: false,
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* शब्दकोश कुंजी उपसर्ग
|
|
808
|
+
*/
|
|
809
|
+
dictionaryKeyPrefix: "",
|
|
810
|
+
},
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
export default config;
|
|
814
|
+
```
|
|
815
|
+
|
|
816
|
+
```javascript fileName="intlayer.config.cjs" codeFormat="commonjs"
|
|
817
|
+
/** @type {import('intlayer').IntlayerConfig} */
|
|
818
|
+
const config = {
|
|
819
|
+
// ... आपका शेष कॉन्फ़िगरेशन
|
|
820
|
+
compiler: {
|
|
821
|
+
/**
|
|
822
|
+
* इंगित करता है कि क्या कंपाइलर सक्षम होना चाहिए।
|
|
823
|
+
*/
|
|
824
|
+
enabled: true,
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* आउटपुट फ़ाइलों का पथ परिभाषित करता है
|
|
828
|
+
*/
|
|
829
|
+
output: ({ fileName, extension }) => `./${fileName}${extension}`,
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* इंगित करता है कि क्या घटकों को बदलने के बाद सहेजा जाना चाहिए। उस तरह से, कंपाइलर को ऐप बदलने के लिए केवल एक बार चलाया जा सकता है, और फिर इसे हटाया जा सकता है।
|
|
833
|
+
*/
|
|
834
|
+
saveComponents: false,
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* शब्दकोश कुंजी उपसर्ग
|
|
838
|
+
*/
|
|
839
|
+
dictionaryKeyPrefix: "",
|
|
840
|
+
},
|
|
841
|
+
};
|
|
842
|
+
|
|
843
|
+
module.exports = config;
|
|
844
|
+
```
|
|
845
|
+
|
|
846
|
+
<Tabs>
|
|
847
|
+
<Tab value='निकालें कमांड'>
|
|
848
|
+
|
|
849
|
+
अपने घटकों को बदलने और सामग्री निकालने के लिए एक्सट्रैक्टर चलाएँ
|
|
850
|
+
|
|
851
|
+
```bash packageManager="npm"
|
|
852
|
+
npx intlayer extract
|
|
853
|
+
```
|
|
854
|
+
|
|
855
|
+
```bash packageManager="pnpm"
|
|
856
|
+
pnpm intlayer extract
|
|
857
|
+
```
|
|
858
|
+
|
|
859
|
+
```bash packageManager="yarn"
|
|
860
|
+
yarn intlayer extract
|
|
861
|
+
```
|
|
862
|
+
|
|
863
|
+
```bash packageManager="bun"
|
|
864
|
+
bunx intlayer extract
|
|
865
|
+
```
|
|
866
|
+
|
|
867
|
+
</Tab>
|
|
868
|
+
<Tab value='बैबेल कंपाइलर'>
|
|
869
|
+
|
|
870
|
+
intlayerCompiler प्लगइन शामिल करने के लिए अपनी `vite.config.ts` अपडेट करें:
|
|
871
|
+
|
|
872
|
+
```ts fileName="vite.config.ts"
|
|
873
|
+
import { defineConfig } from "vite";
|
|
874
|
+
import { intlayer, intlayerCompiler } from "vite-intlayer";
|
|
875
|
+
|
|
876
|
+
export default defineConfig({
|
|
877
|
+
plugins: [
|
|
878
|
+
intlayer(),
|
|
879
|
+
intlayerCompiler(), // कंपाइलर प्लगइन जोड़ता है
|
|
880
|
+
],
|
|
881
|
+
});
|
|
882
|
+
```
|
|
883
|
+
|
|
884
|
+
```bash packageManager="npm"
|
|
885
|
+
npm run build # या npm run dev
|
|
886
|
+
```
|
|
887
|
+
|
|
888
|
+
```bash packageManager="pnpm"
|
|
889
|
+
pnpm run build # Or pnpm run dev
|
|
890
|
+
```
|
|
891
|
+
|
|
892
|
+
```bash packageManager="yarn"
|
|
893
|
+
yarn build # Or yarn dev
|
|
894
|
+
```
|
|
895
|
+
|
|
896
|
+
```bash packageManager="bun"
|
|
897
|
+
bun run build # Or bun run dev
|
|
898
|
+
```
|
|
899
|
+
|
|
900
|
+
</Tab>
|
|
901
|
+
</Tabs>
|
|
902
|
+
|
|
747
903
|
### आगे बढ़ें
|
|
748
904
|
|
|
749
905
|
- **विज़ुअल एडिटर**: UI से सीधे अनुवाद संपादित करने के लिए [Intlayer Visual Editor](https://github.com/aymericzip/intlayer/blob/main/docs/docs/hi/intlayer_visual_editor.md) को एकीकृत करें।
|