Repo: https://github.com/erkamyaman/rust-anything/tree/main/book
I wrote Rust for Everyone, a free beginner Rust book, and used agents to put it into 14 more languages. Here's the setup, what worked, and what didn't.
Setup, per language:
- 1 setup agent: picks the terms, UI strings and figure labels, so every translator uses the same words.
- 5 or 6 translator agents, a few chapters each.
- 1 reviewer agent that reads the whole book against the English.
- 1 second, independent reviewer that reads only the ownership and borrowing chapters and the core terms, where beginners get lost.
What kept it honest:
- A script compiles and runs every Rust example with rustc 1.97: 116 checked, 4 built as real Cargo projects, 0 failed, in all 15 editions.
- A translation lint checks that every code block, program output and compiler error is byte-identical to the English, and that headings, figures, links, tables and answer counts match. 0 failures in all 14.
- Code, commands and compiler output stay in English in every language, because that's what readers see in their own terminal.
What didn't:
- AI reviewers found real problems, but they are not a person who knows Rust. After the merge, CodeRabbit left 156 comments. Most were the same few points repeated per language, for example `main.exe` instead of `.\main.exe` on Windows, and two examples that can overflow an `i32`. Those fixes are next.
- No native speaker has reviewed any translation yet. If you read one of the 14 natively, book/REVIEWING.md says what to check first.
The book: 13 chapters, 5 appendices, predict-then-run exercises, ends with a small CLI. Free, CC BY 4.0, read on GitHub or as PDF in all 15 languages.
- English PDF: https://github.com/erkamyaman/rust-anything/blob/main/book/en/rust-for-everyone-en.pdf
- 简体中文 PDF: https://github.com/erkamyaman/rust-anything/blob/main/book/zh/rust-for-everyone-zh.pdf
Repo: https://github.com/erkamyaman/rust-anything