{"id":36965252,"url":"https://github.com/eldanielhumberto/ct","last_synced_at":"2026-05-07T09:31:37.345Z","repository":{"id":322940295,"uuid":"1087546597","full_name":"eldanielhumberto/ct","owner":"eldanielhumberto","description":"A tool to translate commit messages to different languages. ","archived":false,"fork":false,"pushed_at":"2025-12-15T03:57:00.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-17T04:55:40.217Z","etag":null,"topics":["git","go","traductor"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eldanielhumberto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-01T06:02:10.000Z","updated_at":"2025-12-14T20:26:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/eldanielhumberto/ct","commit_stats":null,"previous_names":["eldanielhumberto/commit-traductor","eldanielhumberto/ct"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/eldanielhumberto/ct","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldanielhumberto%2Fct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldanielhumberto%2Fct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldanielhumberto%2Fct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldanielhumberto%2Fct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eldanielhumberto","download_url":"https://codeload.github.com/eldanielhumberto/ct/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldanielhumberto%2Fct/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28398419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","go","traductor"],"created_at":"2026-01-13T19:56:13.618Z","updated_at":"2026-01-13T19:56:14.265Z","avatar_url":"https://github.com/eldanielhumberto.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ct - Commit Translator\n\n[![Go Version](https://img.shields.io/badge/Go-1.25.5-00ADD8?style=flat\u0026logo=go)](https://go.dev/)\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\n**ct** (commit translator) is a command-line tool that helps you write clean, consistent, and readable git commit messages across different languages using Google's Gemini AI.\n\n## ✨ Features\n\n- 🌍 **Multilingual Support**: Translate commit messages to any language\n- 🤖 **AI-Powered**: Uses Google Gemini 2.5 Flash for accurate translations\n- ⚡ **Fast \u0026 Efficient**: Built with Go for optimal performance\n- 🔒 **Secure**: API keys managed through environment variables\n- 🎯 **Simple CLI**: Easy-to-use command-line interface powered by Cobra\n\n## 📋 Prerequisites\n\n- Go 1.25.5 or higher\n- Google Gemini API key ([Get one here](https://ai.google.dev/))\n\n## 🚀 Installation\n\n```bash\ngo install github.com/eldanielhumberto/ct@latest\n```\n\n## ⚙️ Configuration\n\n1. Create a `.env` file in the project root:\n\n```bash\ncp .env.example .env\n```\n\n2. Add your Gemini API key to the `.env` file:\n\n```env\nGEMINI_API_KEY=your_api_key_here\n```\n\n\u003e **Note**: You can also set the environment variable directly in your shell:\n\u003e ```bash\n\u003e export GEMINI_API_KEY=your_api_key_here\n\u003e ```\n\n\u003e **Note**: Add the go binaries to your PATH:\n\u003e ```bash\n\u003e export PATH=\"$PATH:$HOME/go/bin\"\n\u003e ```\n\n## 📖 Usage\n\n### Basic Usage\n\nTranslate a commit message to a specific language:\n\n```bash\nct commit \"Initial commit\" --lang es\n```\n\n**Output:**\n```\nOriginal message: Initial commit\nTranslated message (es): Commit inicial\n```\n\n### Available Options\n\n```bash\nct commit [message] [flags]\n```\n\n**Flags:**\n- `-l, --lang string`: Target language for translation (default: \"en\")\n- `-h, --help`: Help for commit command\n\n### Examples\n\n```bash\n# Translate to Spanish\nct commit \"Add user authentication\" --lang es\n\n# Translate to French\nct commit \"Fix database connection bug\" --lang fr\n\n# Translate to Japanese\nct commit \"Update documentation\" --lang ja\n\n# Translate to German\nct commit \"Refactor payment module\" --lang de\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n##  Contact\n\nDaniel Humberto - [@eldanielhumberto](https://github.com/eldanielhumberto)\n\nProject Link: [https://github.com/eldanielhumberto/ct](https://github.com/eldanielhumberto/ct)\n\n---\n\nMade with ❤️ by Daniel Humberto\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldanielhumberto%2Fct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feldanielhumberto%2Fct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldanielhumberto%2Fct/lists"}