Skip to content

Fix page translation adapter not translating host content #187

Closed

Description

@prabothcharith

Problem

The Page Translation prototype does not translate the host page when a target language is selected and Translate Page is pressed. The screenshots show the target-language control and action buttons, but the article headings and content remain unchanged.

Reproduction

  1. Open the simulated long article route.
  2. Open Accessibility preferences and the Page Translation section.
  3. Grant/retain translation consent if prompted.
  4. Select Sinhala (or another supported target language).
  5. Click Translate Page.
  6. Observe that the host article content is not translated.

Expected behavior

Supported host text is translated through the configured/offline adapter, with clear loading, success, and error states. The original DOM/content must be restorable with Restore Original.

Acceptance criteria

  • Translation action changes supported host text using the selected language and adapter.
  • Translation status and failures are visible and announced accessibly.
  • Restore Original returns the exact original content and structure.
  • Repeated translate/restore operations are idempotent and do not duplicate or corrupt nodes.
  • Headings, paragraphs, links, and dynamically inserted content follow the documented adapter behavior.
  • Privacy/consent boundaries remain enforced and no unexpected network request is introduced.

Screenshots attached in the report. Parent issue: #8

Activity

  1. prabothcharith commented on Nov 16, 2026

    @prabothcharith
    OwnerAuthor

    Screenshot references

    Translation panel before/after attempt
    Translation controls and unchanged article

  2. prabothcharith commented on Nov 16, 2026

    @prabothcharith
    OwnerAuthor

    Completed in PR #198 (commits fb38594, 872a5cf, 0234149): repaired TranslationAdapter and TranslationController with offline lexicons (si, ta, es, fr, de, ja, zh), widget/form protection, status banners, live language switching, and clean restoration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions