Skip to content

fix(Authoring Tool): Fix HTML auto translation - #2400

Open
Aaron-Detre wants to merge 12 commits into
developfrom
auto-translate-html
Open

Aaron-Detre wants to merge 12 commits into
developfrom
auto-translate-html

Conversation

@Aaron-Detre

@Aaron-Detre Aaron-Detre commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Changes

  • Specifies content type when making translation requests.
  • Limits translation for HTML components when neither the default or current language is English.

Test

  • Test with fix(Authoring Tool): Fix HTML auto translation WISE-API#374
  • Verify plain-text suggestions still work, even when neither the default or current language is English.
  • Verify that the Translate with AI button does not appear on HTML components when neither the default or current language is English.
  • Test HTML translation in both directions involving English, including WISE links.

Note

I branched off of my branch for Remove Birthdays before that was merged in, so the commits from that are showing up here. These are the only commits relevant to this PR:

  1. feat(translation): send rich text as HTML
  2. fix(translate): disable HTML translation suggestions for unsupported languages
  3. fix(translate): fix failing tests

Aaron-Detre and others added 9 commits October 27, 2026 16:24
@Aaron-Detre Aaron-Detre self-assigned this Nov 21, 2026
@Aaron-Detre Aaron-Detre added bug Something isn't working enhancement New feature of any size or improvement (UI, performance, security) labels Nov 21, 2026
@Aaron-Detre
Aaron-Detre marked this pull request as ready for review November 21, 2026 01:23
@Aaron-Detre
Aaron-Detre marked this pull request as draft November 21, 2026 01:26
@qltysh

qltysh Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Qlty


Coverage Impact

Unable to calculate total coverage change because base branch coverage was not found.

Modified Files with Diff Coverage (4)

RatingFile% DiffUncovered Line #s
New file Coverage rating: B
src/assets/wise5/services/teacherProjectTranslationService.ts100.0%
New file Coverage rating: D
...ct-translatable-field/abstract-translatable-field.component.ts28.6%99-107
New file Coverage rating: B
...suggestions-dialog/translation-suggestions-dialog.component.ts100.0%
New file Coverage rating: D
...le-rich-text-editor/translatable-rich-text-editor.component.ts100.0%
Total54.5%
🤖 Increase coverage with AI coding...
In the `auto-translate-html` branch, add test coverage for this new code:

- `src/assets/wise5/authoringTool/components/abstract-translatable-field/abstract-translatable-field.component.ts` -- Line 99-107

Commit 62e55ae · 🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@Aaron-Detre
Aaron-Detre marked this pull request as ready for review November 21, 2026 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature of any size or improvement (UI, performance, security)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant