घरसैंडबॉक्सशोकेसएप्पडॉकब्लॉग
    • Englishअंग्रेज़ी
      EN
    • русскийरूसी
      RU
    • 日本語जापानी
      JA
    • françaisफ़्रेंच
      FR
    • 한국어कोरियाई
      KO
    • 中文चीनी
      ZH
    • españolस्पेनिश
      ES
    • Deutschजर्मन
      DE
    • العربيةअरबी
      AR
    • italianoइतालवी
      IT
    • British Englishब्रिटिश अंग्रेज़ी
      EN-GB
    • portuguêsपुर्तगाली
      PT
    • हिन्दीहिन्दी
      HI
    • Türkçeतुर्की
      TR
    • polskiपोलिश
      PL
    • Indonesiaइंडोनेशियाई
      ID
    • Tiếng Việtवियतनामी
      VI
    • українськаयूक्रेनियाई
      UK
    /
    फ्रेमवर्क द्वारा डॉक्स फ़िल्टर करें
    Alt+←
    Intlayer का क्यों लाभ
    शुरू करें
    अवधारणा
    • Intlayer कैसे काम करता है
    • कॉन्फ़िगरेशन
    • TestFillBuildWatchExtractLoginPushPullConfigurationListVersionEditorLiveDebugDoc ReviewDoc TranslateSDK
    • विज़ुअल एडिटर
    • CMS
    • CI/CD एकीकरण
    • अनुवादबहुवचनगणनाशर्तलिंगसम्मिलनफ़ाइलनेस्टिंगMarkdownHTMLफ़ंक्शन फेचिंग
    • प्रति लोकेल फ़ाइल
    • कंपाइलर
    • स्वतः भरण
    • परीक्षण
    • बंडल ऑप्टिमाइज़ेशन
    पर्यावरण
    • Next.js 14 और ऐप राउटर
      Next.js 15
      Next.js बिना लोकेल URL
      Next.js और पेज राउटर
      कंपाइलर
    • Tanstack Start Solid
    • Astro और React
      Astro और Svelte
      Astro और Vue
      Astro और Solid
      Astro और Preact
      Astro और Lit
      Astro और Vanilla JS
    • React Router v7
      React Router v7 (fs-routes)
      Compiler
    • Nuxt और Vue
    • Vite और Solid
    • SvelteKit
    • Vite और Preact
    • Vite और Vanilla JS
    • Vite और Lit
    • Angular 19 (Webpack)
      Analog
    • React CRA
    • React Native और Expo
    • Express.js
      NestJS
      Fastify
      Hono
      Adonis
    • Lynx और React
    Plugins
    • JSON
    • gettext (.po)
    VS Code एक्सटेंशन
    एजेंट
    • इंटलेयर MCP सर्वर
    • एजेंट कौशल
    रिलीज
    • v8
    • v7
    • v6
    बेंचमार्क
    • Next.js
    • TanStack
    • Vue
    • Solid
    • Svelte
    ब्लॉग
    प्रश्न करें
    1. Documentation
    2. अवधारणा
    3. CLI
    4. Fill
    Creation:2024-08-11Last update:2025-11-22
    इस दस्तावेज़ को अपने पसंदीदा AI एसिस्टेंट के साथ संदर्भित करें
    ChatGPT
    Claude
    DeepSeek
    Google AI mode
    Gemini
    Perplexity
    Mistral
    Grok

    अपने प्रश्न को पूछें और दस्तावेज़ का सारांश प्राप्त करें, इस पृष्ठ और आपके चुने हुए AI प्रदाता का उपयोग करके

    इस पृष्ठ की सामग्री एक AI द्वारा अनुवादित की गई है।

    अंग्रेजी में मूल सामग्री के अंतिम संस्करण देखें
    इस दस्तावेज़ को संपादित करें

    अगर आपके पास इस दस्तावेज़ को सुधारने के लिए कोई विचार है, तो कृपया GitHub पर एक पुल अनुरोध सबमिट करके योगदान देने में संकोच न करें।

    दस्तावेज़ के लिए GitHub लिंक
    Copy

    दस्तावेज़ का Markdown को क्लिपबोर्ड पर कॉपी करें

    शब्दकोश भरें / ऑडिट करें / अनुवाद करें

    bash
    कोड कॉपी करें

    कोड को क्लिपबोर्ड पर कॉपी करें

    npx intlayer fill

    यह कमांड आपकी सामग्री घोषणा फ़ाइलों का विश्लेषण संभावित समस्याओं के लिए करता है जैसे कि गायब अनुवाद, संरचनात्मक असंगतियां, या प्रकार असंगतताएं। यदि यह कोई समस्या पाता है, तो intlayer fill आपके शब्दकोशों को सुसंगत और पूर्ण बनाए रखने के लिए अपडेट प्रस्तावित या लागू करेगा।

    मुख्य बिंदु:

    • AI मॉडल की संदर्भ विंडो सीमा के भीतर रहने के लिए बड़ी JSON फ़ाइलों को चंक्स में विभाजित करता है।
    • यदि आउटपुट प्रारूप गलत है तो अनुवाद को पुनः प्रयास करता है।
    • अनुवाद सटीकता में सुधार के लिए एप्लिकेशन और फ़ाइल-विशिष्ट संदर्भ को शामिल करता है।
    • मौजूदा अनुवादों को अधिलेखित न करके उन्हें संरक्षित करता है।
    • गति बढ़ाने के लिए कतार प्रणाली का उपयोग करके फ़ाइलों, चंक्स और लोकेल्स को समानांतर में संसाधित करता है।

    उपनाम:

    • npx intlayer dictionaries fill
    • npx intlayer dictionary fill
    • npx intlayer dic fill

    आउटपुट के उदाहरण:

    bash
    कोड कॉपी करें

    कोड को क्लिपबोर्ड पर कॉपी करें

    npx intlayer fillPreparing Intlayer (v7.5.14)Done 76ms@intlayer/ai found - Run process locallyProvider: (default) - Model: (default) - API Key: ✓Affected dictionary keys for processing: app, comp-test, hello-world, lang-switcher - [comp-test]      No locales to fill, Skipping comp-test.content.json - [app]            Processing app.content.tsx - [app]            Filling missing metadata for app.content.tsx - [hello-world]    Processing test.content.ts - [hello-world]   [French (fr)]      Preparing test.content.ts - [hello-world]   [Spanish (es)]     Preparing test.content.ts - [lang-switcher]  Processing langSwitcher.content.ts - [lang-switcher]  Filling missing metadata for langSwitcher.content.ts - [hello-world]    Translation completed successfully for test.content.ts - [lang-switcher] [Spanish (es)]     Preparing langSwitcher.content.ts - [app]           [French (fr)]      Preparing app.content.tsx - [app]           [Spanish (es)]     Preparing app.content.tsx - [hello-world]    Content declaration written to test.content.ts - [app]            Translation completed successfully for app.content.tsx - [app]            Content declaration written to app.content.tsx - [lang-switcher]  Translation completed successfully for langSwitcher.content.ts - [lang-switcher]  Content declaration written to langSwitcher.content.ts

    तर्क:

    फ़ाइल सूची विकल्प:

    • -f, --file [files...]: ऑडिट करने के लिए विशिष्ट सामग्री घोषणा फ़ाइलों की सूची। यदि प्रदान नहीं किया गया है, तो आपकी कॉन्फ़िगरेशन फ़ाइल सेटअप के आधार पर सभी खोजी गई *.content.{ts,js,mjs,cjs,tsx,jsx,json} फ़ाइलों का ऑडिट किया जाएगा।

      उदाहरण: npx intlayer dictionary fill -f src/home/app.content.ts
    • -k, --keys [keys...]: कुंजियों के आधार पर शब्दकोशों को फ़िल्टर करें। यदि प्रदान नहीं किया गया है, तो सभी शब्दकोशों का ऑडिट किया जाएगा।

      उदाहरण: npx intlayer dictionary fill -k key1 key2
    • --key [keys...]: कुंजियों के आधार पर शब्दकोशों को फ़िल्टर करें (alias --keys के लिए)।

      उदाहरण: npx intlayer dictionary fill --key key1 key2
    • --excluded-keys [excludedKeys...]: कुंजियों के आधार पर शब्दकोशों को बाहर करें। यदि प्रदान नहीं किया गया है, तो सभी शब्दकोशों का ऑडिट किया जाएगा।

      उदाहरण: npx intlayer dictionary fill --excluded-keys key1 key2
    • --excluded-key [excludedKeys...]: कुंजियों के आधार पर शब्दकोशों को बाहर फ़िल्टर करें (alias --excluded-keys के लिए)।

      उदाहरण: npx intlayer dictionary fill --excluded-key key1 key2
    • --path-filter [pathFilters...]: फ़ाइल पथों के लिए ग्लोब पैटर्न के आधार पर शब्दकोशों को फ़िल्टर करें।

      उदाहरण: npx intlayer dictionary fill --path-filter "src/home/**"

    एंट्री आउटपुट विकल्प:

    • --source-locale [sourceLocale]: स्रोत लोकल जिसे अनुवादित किया जाना है। यदि निर्दिष्ट नहीं किया गया है, तो आपकी कॉन्फ़िगरेशन से डिफ़ॉल्ट लोकल का उपयोग किया जाएगा।

    • --output-locales [outputLocales...]: लक्षित लोकल जिन्हें अनुवादित किया जाना है। यदि निर्दिष्ट नहीं किया गया है, तो आपकी कॉन्फ़िगरेशन से स्रोत लोकल को छोड़कर सभी लोकल का उपयोग किया जाएगा।

    • --mode [mode]: अनुवाद मोड: complete, review। डिफ़ॉल्ट complete है। complete सभी गायब सामग्री को भर देगा, review गायब सामग्री को भरने के साथ-साथ मौजूदा कुंजियों की समीक्षा करेगा।

    Git विकल्प:

    • --git-diff: केवल उन शब्दकोशों पर चलाएं जिनमें बेस (डिफ़ॉल्ट origin/main) से वर्तमान शाखा (डिफ़ॉल्ट: HEAD) तक परिवर्तन शामिल हैं।
    • --git-diff-base: git diff के लिए बेस संदर्भ निर्दिष्ट करें (डिफ़ॉल्ट origin/main)।
    • --git-diff-current: git diff के लिए वर्तमान संदर्भ निर्दिष्ट करें (डिफ़ॉल्ट: HEAD)।
    • --uncommitted: बिना कमिट किए गए परिवर्तनों को शामिल करें।
    • --unpushed: बिना पुश किए गए परिवर्तनों को शामिल करें।
    • --untracked: बिना ट्रैक किए गए फ़ाइलों को शामिल करें।

      उदाहरण: npx intlayer doc translate --git-diff --git-diff-base origin/main --git-diff-current HEAD
      उदाहरण: npx intlayer doc translate --uncommitted --unpushed --untracked

    AI विकल्प:

    • --model [model]: अनुवाद के लिए उपयोग किया जाने वाला AI मॉडल (जैसे, gpt-3.5-turbo)।
    • --provider [provider]: अनुवाद के लिए उपयोग किया जाने वाला AI प्रदाता।
    • --temperature [temperature]: AI मॉडल के लिए तापमान सेटिंग।
    • --api-key [apiKey]: AI सेवा के लिए अपनी API कुंजी प्रदान करें।
    • --custom-prompt [prompt]: अपने अनुवाद निर्देशों के लिए एक कस्टम प्रॉम्प्ट प्रदान करें।
    • --application-context [applicationContext]: AI अनुवाद के लिए अतिरिक्त संदर्भ प्रदान करें।
    • --data-serialization [dataSerialization]: Intlayer की AI सुविधाओं के लिए उपयोग किया जाने वाला डेटा सीरियलाइजेशन प्रारूप। विकल्प: json (मानक, विश्वसनीय), toon (कम टोकन, कम सुसंगत)।

      उदाहरण: npx intlayer fill --model gpt-3.5-turbo --provider openai --temperature 0.5 --api-key sk-1234567890 --application-context "My application is a cat store"

      पर्यावरण चर विकल्प:

    • --env: पर्यावरण निर्दिष्ट करें (जैसे, development, production)।
    • --env-file [envFile]: चर लोड करने के लिए एक कस्टम पर्यावरण फ़ाइल प्रदान करें।

      उदाहरण: npx intlayer fill --env-file .env.production.local
      उदाहरण: npx intlayer fill --env production

    कॉन्फ़िगरेशन विकल्प:

    • --base-dir: प्रोजेक्ट के लिए बेस डायरेक्टरी निर्दिष्ट करें।

      उदाहरण: npx intlayer fill --base-dir ./src
    • --no-cache: कैश को अक्षम करें।

      उदाहरण: npx intlayer build --no-cache

    तैयारी विकल्प:

    • --build: पुश करने से पहले डिक्शनरीज़ बनाएं ताकि सामग्री अद्यतित रहे। True से बिल्ड ज़बरदस्ती होगा, false से बिल्ड छोड़ दिया जाएगा, undefined से बिल्ड के कैश का उपयोग करने की अनुमति होगी।

    • --skip-metadata: शब्दकोशों के लिए गायब मेटाडेटा (विवरण, शीर्षक, टैग) भरने से बचें।

    लॉग विकल्प:

    • --verbose: डिबगिंग के लिए विस्तृत लॉगिंग सक्षम करें। (CLI का उपयोग करते समय डिफ़ॉल्ट रूप से true)

    उदाहरण:

    bash
    कोड कॉपी करें

    कोड को क्लिपबोर्ड पर कॉपी करें

    npx intlayer fill --file src/home/*.content.ts --source-locale en --output-locales fr es --model gpt-3.5-turbo

    यह कमांड GPT-3.5 टर्बो मॉडल का उपयोग करते हुए src/home/ डायरेक्टरी में सभी कंटेंट घोषणा फ़ाइलों के लिए अंग्रेज़ी से फ्रेंच और स्पेनिश में सामग्री का अनुवाद करेगा।

    Test
    Build
    Alt+→

    इस पृष्ठ में

      चर्चाएं गुमनाम हैं और सामान्य मुद्दों को संबोधित करने के लिए नियमित रूप से समीक्षा की जाती हैं। फीचर आइडिया, डॉक्यूमेंटेशन पर फीडबैक, या Intlayer से संबंधित कुछ भी साझा करने में संकोच न करें, हम इस इनपुट का उपयोग अपने रोडमैप को आकार देने और उत्पाद को बेहतर बनाने के लिए करते हैं।

      npx intlayer fill
      npx intlayer fillPreparing Intlayer (v7.5.14)Done 76ms@intlayer/ai found - Run process locallyProvider: (default) - Model: (default) - API Key: ✓Affected dictionary keys for processing: app, comp-test, hello-world, lang-switcher - [comp-test]      No locales to fill, Skipping comp-test.content.json - [app]            Processing app.content.tsx - [app]            Filling missing metadata for app.content.tsx - [hello-world]    Processing test.content.ts - [hello-world]   [French (fr)]      Preparing test.content.ts - [hello-world]   [Spanish (es)]     Preparing test.content.ts - [lang-switcher]  Processing langSwitcher.content.ts - [lang-switcher]  Filling missing metadata for langSwitcher.content.ts - [hello-world]    Translation completed successfully for test.content.ts - [lang-switcher] [Spanish (es)]     Preparing langSwitcher.content.ts - [app]           [French (fr)]      Preparing app.content.tsx - [app]           [Spanish (es)]     Preparing app.content.tsx - [hello-world]    Content declaration written to test.content.ts - [app]            Translation completed successfully for app.content.tsx - [app]            Content declaration written to app.content.tsx - [lang-switcher]  Translation completed successfully for langSwitcher.content.ts - [lang-switcher]  Content declaration written to langSwitcher.content.ts
      npx intlayer fill --file src/home/*.content.ts --source-locale en --output-locales fr es --model gpt-3.5-turbo