Skip to content

Examples ​

Runnable projects under examples/ on GitHub — each with its own config, committed locale outputs, and README. You can explore translated files without an API key; re-running translation requires a provider key (Providers and models).

Run standalone (npx degit) ​

Copy one example without cloning the full repository. Each declares a published caret range of ai-i18n-tools matching the current package version and installs the CLI from npm:

bash
npx degit wsj-br/ai-i18n-tools/examples/<name> <name>
cd <name>
pnpm install

If you cloned the whole ai-i18n-tools repository instead, run pnpm install and pnpm run build at the repository root, then cd examples/<name>. Workspace examples use the local CLI via their pnpm run i18n:* scripts, or bare ai-i18n-tools … after PATH setup. See Installation — Cloned monorepo.

List of Examples ​

ExampleBest forCopy with degitRun
console-appSmallest working app with t() UI strings + README translationnpx degit wsj-br/ai-i18n-tools/examples/console-app console-apppnpm start
nextjs-appReact / Next.js + plurals + dashboard; nested Docusaurus docs + flat README + SVG assetsnpx degit wsj-br/ai-i18n-tools/examples/nextjs-app nextjs-apppnpm dev (app :3030; cd docs-site && pnpm start for docs :3040)
docusaurus-docsDocusaurus documentation site only (docusaurus preset)npx degit wsj-br/ai-i18n-tools/examples/docusaurus-docs docusaurus-docspnpm start (:3100; build + serve, locale menu works)
astro-websiteAstro landing page: full-page HTML + t() hybridnpx degit wsj-br/ai-i18n-tools/examples/astro-website astro-websitepnpm dev
astro-docsAstro Starlight documentation sitenpx degit wsj-br/ai-i18n-tools/examples/astro-docs astro-docspnpm dev (:3050)
vitepress-docsVitePress docs site + theme JSON (pt-BR, zh-Hans)npx degit wsj-br/ai-i18n-tools/examples/vitepress-docs vitepress-docspnpm run docs:dev (:3060)
nextra-docsNextra 4 MDX + _meta.ts / dictionary .ts shell (pt-BR, zh-Hans)npx degit wsj-br/ai-i18n-tools/examples/nextra-docs nextra-docspnpm run dev (:3070)
fumadocs-docsFumadocs 4 MDX + meta.json / UI catalog (pt, zh, dot parser)npx degit wsj-br/ai-i18n-tools/examples/fumadocs-docs fumadocs-docspnpm run dev (:3080)
plain-htmlPlain HTML + data-i18n* markers; static locale JSON (dashboard-style UI)npx degit wsj-br/ai-i18n-tools/examples/plain-html plain-htmlpnpm dev (:3090)
multi-providerPick or benchmark an LLM provider (-P / --provider)npx degit wsj-br/ai-i18n-tools/examples/multi-provider multi-providerai-i18n-tools translate-docs -P openai --force
test-markdownRegression-test markdown / CJK translation (Devanagari, MDX)npx degit wsj-br/ai-i18n-tools/examples/test-markdown test-markdownpnpm build
intlayer-migrationIntlayer .content.ts → t() (migrate-intlayer, reset + AI-agent report)npx degit wsj-br/ai-i18n-tools/examples/intlayer-migration intlayer-migrationpnpm reset && pnpm dev (:3091)

Each Example name links to its GitHub README with full setup, commands, and project layout — or browse the examples index in the repository.


Disclaimer

Product names and icons belong to their respective owners and are used for identification purposes only. This software is not affiliated with or endorsed by those brands.

Released under the MIT License.