Skip to content

Releases: Azure/co-op-translator

v0.8.1

25 Mar 15:43
6ee8530
Compare
Choose a tag to compare

What's Changed

To use the "all" method in CI/CD workflows, please upgrade to version 0.8.1.

  • Add --yes flag to bypass confirmation prompts in CLI by @skytin1004 in #104

Full Changelog: v0.8.0...v0.8.1

v0.8.0

25 Mar 13:01
57c386a
Compare
Choose a tag to compare

🚀 What's New in Co-op Translator v0.8.0

Improved Image Translation (by @timothycdc)

  • Eliminated text distortion in translated images.
  • Added paragraph detection and improved text alignment — now with full support for right-to-left (RTL) languages.
  • Enhanced background color detection and rendering speed.
  • Introduced an optional fast mode for quicker image generation (with slightly reduced image quality and alignment accuracy).
  • Fixed a long-standing issue where RTL text appeared broken in image translations.
  • Added support for reshaping complex script languages when rendering text in images: ar, fa, ur, he.

improved images

Smarter Outdated Translation Detection (by @skytin1004)

  • File Metadata Integration: Translation files now store original source metadata (including file size hash) to accurately detect outdated translations.
  • Improved Directory Syncing: Translation directories now reliably mirror the structure of the original project.
  • Refined Translation Quality: Enhanced Markdown and image translation for better accuracy and formatting.
  • Streamlined CLI Options: Easier, cleaner command-line experience.
  • Stronger Error Handling: More resilient to API failures and interruptions.

outdatedexample

🚀 GitHub Actions Support

You can now use Co-op Translator directly within GitHub Actions!

Whenever a source document is updated and pushed to the main branch,
Co-op Translator will automatically check for changes, update the translations,
and create a pull request with the updated content.

Check out how to set up Co-op Translator bot: Link

working-well

What's Changed

  • Core, Build, Docs: Add Black code formatter and apply formatting by @skytin1004 in #74
  • Core, Build, Docs: Improve Translation Management & Metadata Handling by @skytin1004 in #76
  • updating LLM configuration to get details from dotenv file by @BethanyJep in #77
  • Build(deps): Bump cryptography from 44.0.0 to 44.0.1 by @dependabot in #78
  • Core: Improve retranslation progress bar and fix duplicate output bug by @skytin1004 in #79
  • Docs: Clean up Docs for Azure AI Foundry by @leestott in #80
  • Docs: Add troubleshooting guide by @leestott in #82
  • Improve the translation prompt to fix the issue where Co-op Translator adds unnecessary triple backticks (''') when generating markdown translations by @skytin1004 in #84
  • Core: Fix orphaned translation files not being deleted when original files are renamed by @skytin1004 in #85
  • Build: Update version to 0.7.2b1 by @skytin1004 in #86
  • Add Community banner by @leestott in #88
  • Docs: Improve readability for README.md by @Shardakaur2624 in #89
  • Update translator-your-project.md by @leestott in #90
  • Build: Implement GitHub Actions for Co-op Translator by @skytin1004 in #91
  • Docs: Improve readability for README.md by @Shardakaur2624 in #92
  • Updated case studies section with a table of official projects by @Shardakaur2624 in #94
  • Delete unused headline by @skytin1004 in #95
  • Core: Improve Image Annotation Engine for Co-op Translator by @timothycdc in #93
  • Build(deps): Bump jinja2 from 3.1.5 to 3.1.6 by @dependabot in #96
  • Clarify pt Mapping to pt-PT and Support Brazilian Portuguese br Locale by @skytin1004 in #98
  • Update GitHub Actions template for enterprise compatibility by @skytin1004 in #99
  • Core: Update disclaimer to include the Co-op Translator link by @skytin1004 in #100
  • Build: Update version to v0.8.0-test by @skytin1004 in #101

New Contributors

Full Changelog: v0.6.3...v0.8.0

Warning

If you upgrade Co-op Translator from version 0.6.x to 0.8.x and run the translate method, all existing translations will be removed and re-created.
This is because, starting from version 0.8.0, Co-op Translator uses the file size hash of the original source to detect changes. This ensures that if the original content is modified, the corresponding translations are automatically updated.

v0.7.2b1

23 Feb 19:27
3a155f4
Compare
Choose a tag to compare

What's Changed

  • Docs: Clean up Docs for Azure AI Foundry by @leestott in #80
  • Docs: Add troubleshooting guide by @leestott in #82
  • Improve the translation prompt to fix the issue where Co-op Translator adds unnecessary triple backticks (''') when generating markdown translations by @skytin1004 in #84
  • Core: Fix orphaned translation files not being deleted when original files are renamed by @skytin1004 in #85
  • Build: Update version to 0.7.2b1 by @skytin1004 in #86

Full Changelog: v0.7.1b1...v0.7.2b1

v0.6.5

23 Feb 20:05
629538a
Compare
Choose a tag to compare

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 #87

Full Changelog: v0.6.4...v0.6.5

v0.7.1b1

13 Feb 14:05
b7c1188
Compare
Choose a tag to compare

What's Changed

  • updating LLM configuration to get details from dotenv file by @BethanyJep in #77
  • Build(deps): Bump cryptography from 44.0.0 to 44.0.1 by @dependabot in #78
  • Core: Improve retranslation progress bar and fix duplicate output bug by @skytin1004 in #79

New Contributors

Full Changelog: v0.7.0b1...v0.7.1b1

v0.6.4

13 Feb 14:27
Compare
Choose a tag to compare

What's Changed

Updated LLM configuration to get details from dotenv file

New Contributors

Full Changelog: v0.6.3...v0.6.4

v0.7.0b1

31 Jan 17:22
b98c1ba
Compare
Choose a tag to compare

What's Changed

  • Core, Build, Docs: Add Black code formatter and apply formatting by @skytin1004 in #74
  • Core, Build, Docs: Improve Translation Management & Metadata Handling by @skytin1004 in #76

Full Changelog: v0.6.3...v0.7.0b1

Purpose

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

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

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.

v0.6.3

19 Jan 14:20
554b669
Compare
Choose a tag to compare

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 #68
  • Bump jinja2 from 3.1.4 to 3.1.5 by @dependabot in #69
  • Core: Add unit tests and refactor logic for Co-op Translator by @skytin1004 in #71
  • Build, Docs: Update CONTRIBUTING.md and configuration files to align with new prefix convention by @skytin1004 in #72
  • Build: Release version 0.6.3 by @skytin1004 in #73

New Contributors

Full Changelog: v0.6.2...v0.6.3

v0.6.2

20 Dec 03:55
255a7b5
Compare
Choose a tag to compare

v0.6.2 Release Notes

What's Changed

  • Fix: ensure .env loading from project root directory by @skytin1004 in #67
  • Redesigned architecture to support multiple LLM services in Co-op Translator by @skytin1004 in #63
  • Docs: Fix incorrect links and update README content by @skytin1004 in #64
  • Docs: Add detailed explanations for environment variable configuration by @skytin1004 in #65

🎉 Major Features

Redesigned Architecture

  • Implemented a flexible architecture supporting multiple LLM and Vision providers
  • Separated provider-specific implementations from core business logic
  • Reorganized utilities and configurations for better maintainability

New Model Support

  • Added OpenAI model support
  • Introduced provider selection based on environment variable configuration
  • Implemented priority-based model selection when multiple providers are configured

Enhanced Markdown Processing

  • Introduced Markdown-only mode for text-focused translations
  • Automatic fallback to Markdown-only mode when vision services are unavailable
  • Added -md flag for explicit Markdown-only mode activation

📚 Documentation Updates

  • Updated README with comprehensive model support information
  • Added detailed environment variable configuration guide
  • Fixed incorrect documentation links
  • Enhanced setup instructions for multiple provider options

Migration Guide

Environment Variables

  • Added support for OpenAI configuration
  • Maintained backward compatibility with existing Azure configurations
  • Updated environment variable template with new options

Command Line Interface

  • Updated -md flag for Markdown-only mode

Contributors

Full Changelog: v0.5.2...v0.6.2

v0.5.2

05 Dec 16:26
a4709e4
Compare
Choose a tag to compare

What's Changed

  • Docs: Improve README by @skytin1004 in #61
  • Build: Restrict pydantic version to <2.10 to resolve compatibility issues by @skytin1004 in #62

Full Changelog: v0.5.1...v0.5.2

Note

Summary: This patch release (v0.5.2) addresses a compatibility issue with pydantic versions >=2.10. By restricting the version to <2.10, the issue has been resolved without introducing new features or changes.