SDKs e Integrações
SDKs oficiais e guias de integração para cada stack. Configuração zero, potência máxima.
Available SDKs
🔷 Astro SDK
Build-time i18n for Astro sites. Extracts t() calls, <Trans> components, inline objects.
- ✓ Incremental translation
- ✓ Glossary protection
- ✓ Format-aware (HTML/MD)
- ✓ Guardrails (batch/throttle)
npx btoven-i18n full
git.btoven.net/translate/astro-sdk ↗💻 CLI Tool
Standalone binary for any project. Same pipeline as Astro, no Astro required.
- ✓ extract / translate / validate
- ✓ Config via env or file
- ✓ Dry-run & force modes
- ✓ Progress & checkpoints
btoven-i18n translate --force
git.btoven.net/translate/cli ↗🐍 Python SDK
Native Python client with sync/async, retries, and job queue support.
- ✓ translate(), detect(), languages()
- ✓ submit_job / wait_for_job
- ✓ Priority & dedup options
- ✓ PII anonymize helper
pip install btoven-translate
git.btoven.net/translate/btoven-translate ↗📦 Node.js SDK
Universal JS/TS client for browser, Node, Edge. Typed, tree-shakable.
- ✓ Fetch-based, no deps
- ✓ Auto-retry with backoff
- ✓ Job queue integration
- ✓ Cache with TTL
npm i @btoven/translate
🦀 Rust SDK
btoven-translate crate + btoven-i18n build-time i18n CLI for any Rust project.
- ✓ extract / translate / validate + hash manifest
- ✓ glossary, overrides, placeholder safety
- ✓ reqwest client (translate, detect, languages)
- ✓ CLI flags + env config, dry-run/force
cargo install --git https://git.btoven.net/translate/rust-sdk btoven-translate
git.btoven.net/translate/rust-sdk ↗Quick Start — Any Stack
curl -X POST https://translate.btoven.net/translate \ -H 'Content-Type: application/json' \ -d {"q":"Hello","source":"en","target":"es"}import { createClient } from '@btoven/translate';const client = createClient();await client.translate({q: 'Hello', source: 'en', target: 'es'});