Skip to content

CLI – Einrichtung

version

Synopsis: ai-i18n-tools version

Gibt die CLI-Version und den Build-Zeitstempel aus (dieselbe Information wie -V / --version im Stammprogramm).


init

Synopsis: ai-i18n-tools init [-t <template>] [-o <path>] [-P <provider>] [--with-translate-ignore]

Schreiben Sie eine Starter-Konfigurationsdatei (enthält provider / providers, concurrency, batchConcurrency, batchSize, maxBatchChars und docs[].addFrontmatter). Übersetzungsbefehle, die ein LLM aufrufen, erfordern den API-Schlüssel des aktiven Anbieters in der Umgebung oder .env (Ollama ausgenommen) – siehe Anbieter und API-Schlüssel.

Wichtige Optionen: -t / --template, -o / --output, -P / --provider, --with-translate-ignore

-P / --provider wählt das eingebaute Preset aus, das als Gerüst dienen soll (openrouter, wenn weggelassen). Muss einer der folgenden Werte sein: openrouter, openai, anthropic, gemini, deepseek, cerebras, groq, mistral, xai, nvidia, alibaba, apifun, ollama.

Vorlagen (-t):

WertGerüste
ui-markdownMarkdown UI-Strings-Workflow
ui-docusaurusDocusaurus UI + Docs
ui-starlightStarlight Docs
ui-vitepressVitePress Docs (docsOutput.style: "vitepress") plus vitepressThemeCatalog für Theme-Strings
ui-nextraNextra Docs (docsOutput.style: "nextra") plus nextraDictionaryPath für das Theme-Wörterbuch (Sidebar _meta.ts wird automatisch gesammelt)
ui-fumadocsFumadocs Docs (docsOutput.style: "fumadocs") plus fumadocsUiCatalog für UI-Overrides (Sidebar meta.json wird automatisch gesammelt)
ui-astro-websiteAstro Website UI-Strings
ui-json-bundlesJSON (nur json[])

--with-translate-ignore erstellt eine Starter-.translate-ignore.

Veröffentlicht unter der MIT-Lizenz.