Imperial-EE-Microsoft / co_op_translator

Easily automate multilingual translations for your projects with co_op_translator, powered by advanced LLM technology.
https://techcommunity.microsoft.com/t5/educator-developer-blog/localizing-github-repositories-with-llms/ba-p/4216434
MIT License
1 stars 2 forks source link

Add retry logic for failed translations, improve CLI validation, and fix translation issue for markdowns with many links #30

Closed skytin1004 closed 1 month ago

skytin1004 commented 1 month ago

Summary

I've added several key improvements to the project:

  1. Retry logic for failed translations: I've added a mechanism to handle cases where translations fail. When a translation error occurs, the system will now retry the translation for that specific file instead of skipping it, ensuring better reliability in the overall translation process.

  2. CLI validation and file check: I've added a new validation feature to the CLI, which checks the translated files for formatting or content issues. If issues are detected, the tool can now retry translating those files automatically, improving the overall translation workflow.

  3. Improved handling of markdowns with many links: Markdown files containing a large number of links (more than 10) were experiencing issues with line breaks and formatting during translation. This PR resolves the problem by splitting such files into smaller chunks, translating each chunk separately. (Solved #26, #27, #28, #29 )

skytin1004 commented 1 month ago

I have reviewed the changes and everything looks good.