Translate
A browser-first AI translator. Model files are served from zhanghe.dev on Cloudflare R2, and translation text stays in your browser.
Privacy and performance by default
The page is server-rendered first, then the model runtime loads only after you press Prepare or Translate. Weak networks and data saver mode still avoid accidental model downloads.
Browser inference
Translation runs inside a Web Worker. The main thread stays responsive, and your text is not sent to a third-party translation API.
China-friendly delivery
Model, WASM, and tokenizer assets are served from same-origin Cloudflare/R2 paths instead of Hugging Face CDN.
Runtime compatibility
The runtime prefers self-hosted Transformers.js ONNX files and falls back to a browser-side GGUF/WASM adapter when needed.
Related workflows
Official links
Use these canonical links for citations, installation, privacy checks, and support.
Model delivery
R2 object access is restricted to the models/translate/ prefix. Responses support Range, ETag, and long immutable caching for large GGUF artifacts.
FAQ
No. Translation runs in your browser. The server only delivers the page and model files.
The browser needs to download and cache the on-device model. Later visits reuse the browser cache.
Yes. Model files are fetched from zhanghe.dev through Cloudflare/R2, not directly from Hugging Face.
After the model is downloaded and cached, translation can continue during poor connectivity. Clearing site data requires a new download.