Skip to content

Conversation

@skytin1004
Copy link
Collaborator

Purpose

  • Remove automatic line numbering (1., 2., etc.) from gen_image_translation_prompt
  • Add "preserve original formatting" instruction to translation prompt
  • Ensures translated text maintains original format without added numbers
  • Fixes issue where images without numbering were getting numbered translations

Description

Related Issue

Does this introduce a breaking change?

When developers merge from main and run the server, azd up, or azd deploy, will this produce an error?
If you're not sure, try it out on an old environment.

  • Yes
  • No

Type of change

  • Bugfix
  • Feature
  • Code style update (e.g., formatting, local variables)
  • Refactoring (no functional or API changes)
  • Documentation content changes
  • Other... Please describe:

Checklist

Before submitting your pull request, please confirm the following:

  • I have thoroughly tested my changes: I confirm that I have run the code and manually tested all affected areas.
  • All existing tests pass: I have run all tests and confirmed that nothing is broken.
  • I have added new tests (if applicable): I have written tests that cover the new functionality introduced by my code changes.
  • I have followed the Co-op Translators coding conventions: My code adheres to the style guide and coding conventions outlined in the repository.
  • I have documented my changes (if applicable): I have updated the documentation to reflect the changes where necessary.

Additional context

@github-actions github-actions bot added the tests label Aug 17, 2025
@skytin1004 skytin1004 merged commit ad454e0 into Azure:main Aug 17, 2025
2 checks passed
@skytin1004 skytin1004 deleted the update-image-translation branch August 17, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant