The pnpm translate command drafts Bangla translations with the Gemini API, then runs
textlint/prh and asks the model to fix any terminology violations. The output is a
draft — always review it against GLOSSARY.md before opening a PR.
- Get a Google AI Studio API key.
- Copy
.env.exampleto.envand setGOOGLE_API_KEY=...(optionallyGEMINI_MODEL=...).
pnpm translate <path or glob> # preview translation
pnpm translate -w <path> # write the result (creates the .en.md snapshot too)
pnpm translate --force <path> # re-translate an already translated fileExample:
pnpm translate -w adev-bn/src/content/introduction/what-is-angular.md