📝 Dev.to Blog Translation Tool
Use when translating and publishing Dev.to draft articles into English using the Gemini API.
Overview
This skill assists in using the devto-blog-translation-tool to automate the translation of Dev.to draft articles into English while preserving Markdown formatting and technical terms.
When to Use
- Translating draft articles from a Dev.to account.
- Automating the publishing of translated content.
- Managing blog localization from non-English languages to English.
Core Pattern
Ensure that both DEVTO_API_KEY and GEMINI_API_KEY are properly configured in the .env file before execution.
# Example execution (assuming Go is installed)
go run cmd/translator/main.go
Quick Reference
| Key | Description |
|---|---|
DEVTO_API_KEY |
API key from Dev.to settings |
GEMINI_API_KEY |
API key from Google AI Studio |
go mod download |
Install required Go dependencies |
Implementation
- Clone the tool repository:
https://github.com/kkdai/devto-blog-translation-tool. - Configure
.envwith required API keys. - Run
go mod downloadto fetch dependencies. - Execute
go run cmd/translator/main.goand confirm the prompt to translate and publish.
Common Mistakes
- Missing API Keys: Ensure
.envis correctly populated. - Auto-Publishing Warning: Be aware that this tool automatically publishes articles after translation.
- Go Environment: Ensure Go 1.21+ is installed on the system.