Co-op-translator

Latest version: v0.6.5

Safety actively analyzes 715032 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.7.2b1

What's Changed
* Docs: Clean up Docs for Azure AI Foundry by leestott in https://github.com/Azure/co-op-translator/pull/80
* Docs: Add troubleshooting guide by leestott in https://github.com/Azure/co-op-translator/pull/82
* Improve the translation prompt to fix the issue where Co-op Translator adds unnecessary triple backticks (''') when generating markdown translations by skytin1004 in https://github.com/Azure/co-op-translator/pull/84
* Core: Fix orphaned translation files not being deleted when original files are renamed by skytin1004 in https://github.com/Azure/co-op-translator/pull/85
* Build: Update version to 0.7.2b1 by skytin1004 in https://github.com/Azure/co-op-translator/pull/86


**Full Changelog**: https://github.com/Azure/co-op-translator/compare/v0.7.1b1...v0.7.2b1

0.7.1b1

What's Changed
* updating LLM configuration to get details from dotenv file by BethanyJep in https://github.com/Azure/co-op-translator/pull/77
* Build(deps): Bump cryptography from 44.0.0 to 44.0.1 by dependabot in https://github.com/Azure/co-op-translator/pull/78
* Core: Improve retranslation progress bar and fix duplicate output bug by skytin1004 in https://github.com/Azure/co-op-translator/pull/79

New Contributors
* BethanyJep made their first contribution in https://github.com/Azure/co-op-translator/pull/77

**Full Changelog**: https://github.com/Azure/co-op-translator/compare/v0.7.0b1...v0.7.1b1

0.7.0b1

What's Changed
* Core, Build, Docs: Add Black code formatter and apply formatting by skytin1004 in https://github.com/Azure/co-op-translator/pull/74
* Core, Build, Docs: Improve Translation Management & Metadata Handling by skytin1004 in https://github.com/Azure/co-op-translator/pull/76


**Full Changelog**: https://github.com/Azure/co-op-translator/compare/v0.6.3...v0.7.0b1

Purpose

<!-- Describe the intention of the changes being proposed. What problem does it solve or functionality does it add? -->

We are currently preparing a **GitHub Action version of Co-op Translator** to streamline multilingual documentation workflows.

As part of this initiative, this release introduces key enhancements and fixes based on **issue 70 **, focusing on improved translation management, directory synchronization, metadata handling, and test coverage.

**Key Improvements**
- **Metadata Integration**: Added metadata to each translation file to detect outdated translations and improve tracking.
- **Enhanced Directory Management**: Ensures translation directories remain in sync with the original project structure.
- **Improved Translation Quality**: Refined markdown and image translation processes for better accuracy and formatting.
- **Optimized CLI Experience**: Simplified command-line options for a more intuitive user experience.
- **Robust Error Handling**: Improved failure recovery mechanisms for better resilience against API failures.

**Translation Workflow**
When the translation process starts, it follows these structured steps:

1. **Remove orphaned translations** – Deletes translated files that no longer have a corresponding source file.
2. **Synchronize directory structure** – Ensures translated content mirrors the original folder hierarchy.
3. **Identify outdated translations** – Detects and flags files requiring re-translation based on metadata changes.
4. **Perform translation** – Processes only the required files, reducing unnecessary API calls and improving efficiency.

These enhancements lay the groundwork for seamless automation in **GitHub Actions**, making Co-op Translator more scalable and efficient.

Description

<!-- Provide a concise summary of your changes. Why is this change necessary? -->

This update enhances the Co-op Translator by refining the translation workflow, adding missing metadata for better tracking, and improving error handling. The CLI has been adjusted to provide better user feedback when selecting translation options. Additionally, the directory manager now ensures that translations align with the original project's structure.

Key changes:
- Added metadata support with structured comments for translations.
- Improved handling of orphaned translations by cleaning up outdated files.
- Implemented a more robust error-handling mechanism for API failures.
- Streamlined CLI options for more intuitive use.
- Enhanced test coverage for directory and translation management.
[co_op_translator-0.7.0b1.tar.gz](https://github.com/user-attachments/files/18622225/co_op_translator-0.7.0b1.tar.gz)

> [!WARNING]
> This feature will take effect starting from version 0.7.0b1. Beginning with this release, Co-op Translator uses metadata to detect outdated translations. If a translation file does not contain CO_OP_TRANSLATOR_METADATA, it will be automatically deleted and retranslated.

0.6.5

What's Changed
* Build: Improve the translation prompt to fix the issue where Co-op Translator adds unnecessary triple backticks (''') when generating markdown translations and update version to 0.6.5 by skytin1004 in https://github.com/Azure/co-op-translator/pull/87


**Full Changelog**: https://github.com/Azure/co-op-translator/compare/v0.6.4...v0.6.5

0.6.4

What's Changed

Updated LLM configuration to get details from dotenv file

New Contributors
* BethanyJep made their first contribution in https://github.com/Azure/co-op-translator/pull/77

**Full Changelog**: https://github.com/Azure/co-op-translator/compare/v0.6.3...v0.6.4

0.6.3

Major Updates

- Added comprehensive test cases for Co-op Translator to cover a wide range of scenarios.
- Enhanced error handling logic to address potential issues identified during testing.
- Improved validation for environment variables, ensuring missing or empty values are now properly detected and flagged.

What's Changed
* Docs: Fix broken links by skytin1004 in https://github.com/Azure/co-op-translator/pull/68
* Bump jinja2 from 3.1.4 to 3.1.5 by dependabot in https://github.com/Azure/co-op-translator/pull/69
* Core: Add unit tests and refactor logic for Co-op Translator by skytin1004 in https://github.com/Azure/co-op-translator/pull/71
* Build, Docs: Update CONTRIBUTING.md and configuration files to align with new prefix convention by skytin1004 in https://github.com/Azure/co-op-translator/pull/72
* Build: Release version 0.6.3 by skytin1004 in https://github.com/Azure/co-op-translator/pull/73

New Contributors
* dependabot made their first contribution in https://github.com/Azure/co-op-translator/pull/69

**Full Changelog**: https://github.com/Azure/co-op-translator/compare/v0.6.2...v0.6.3

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.