Skip to content

Conversation

@ARYPROGRAMMER
Copy link
Contributor

Description

Adds an intermediate recipe that translates code comments and docstrings between languages while preserving code structure and technical terms.

Changes

  • Created code-comment-translator.yaml recipe
  • Uses Developer + Memory extensions
  • Translates comments in-place with automatic backup creation
  • Preserves technical terms (API, HTTP, JWT, etc.) automatically
  • Generates translation report with before/after examples

Testing

Tested with Spanish→English and French→English translations:

  • ✅ Translated 16 Spanish comments in Python authentication module
  • ✅ Technical terms preserved (JWT, SHA-256, Redis, HS256)
  • ✅ Backup created automatically
  • ✅ Translation report generated successfully
  • ✅ Code structure unchanged

Test command:

goose run --recipe documentation/src/pages/recipes/data/recipes/code-comment-translator.yaml \
  --params file_path=./comment-translation-sample/auth_utils.py \
  --params source_language=spanish \
  --params target_language=english

Screenshots

demo (2)
demo (3)
demo (1)

Related Issues

Fixes #5118

Email: [email protected]

@ARYPROGRAMMER ARYPROGRAMMER requested a review from a team as a code owner October 11, 2025 05:00
@github-actions
Copy link
Contributor

Recipe Validation Passed

Your recipe(s) are valid and ready for review!

🔍 Next Steps:

  1. Our team will review your recipe
  2. If approved, we'll run a security scan
  3. Once merged, you'll receive $10 in OpenRouter credits (if email provided)

Thanks for contributing to the goose Recipe Cookbook! 🎉

@github-actions
Copy link
Contributor

🔍 Recipe Security Scan Results

Status: APPROVED - All recipes passed security scan

📊 Scan Summary:

  • Total recipes scanned: 1

📋 Individual Recipe Results:
✅ Recipe 1: APPROVED (LOW risk)

🔗 View detailed scan results in the workflow artifacts.

@ARYPROGRAMMER
Copy link
Contributor Author

request for review

@taniandjerry taniandjerry added the hacktoberfest Issues awarding points for Hacktoberfest 2025! label Oct 14, 2025
@taniandjerry
Copy link
Contributor

Closing some recipe submissions from @ARYPROGRAMMER and linking best recipes into single PR here #5125 ! Thank you so much for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest Issues awarding points for Hacktoberfest 2025!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🍳 Intermediate Recipe Submission #4

2 participants