Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add aider translation support #1006

Open
wants to merge 3 commits into
base: 3.13
Choose a base branch
from
Open

Conversation

josix
Copy link
Collaborator

@josix josix commented Dec 16, 2024

This pull request introduces a new script for handling .po files and updates the Makefile to include a new translation target using the aider-chat tool. The most important changes are detailed below:

New Script for .po File Handling:

  • .scripts/intercept.py: Added a new script to handle .po files, which includes functionality to parse the file and retrieve specific entries based on their occurrences.

Makefile Enhancements:

  • Makefile: Added a new target to install the aider-chat tool in the virtual environment.
  • Makefile: Introduced a new translate target that uses the aider-chat tool to translate Python documentation into Traditional Chinese. This target requires FILE and LINE arguments to specify the .po file and the line number to translate.

Example
image

Co-Authored-By: Wei-Hsiang (Matt) Wang <[email protected]>
Co-Authored-By: Becca <[email protected]>
@josix josix force-pushed the feat/aider-translation branch from 4695a29 to c13a0ab Compare December 16, 2024 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants