Skip to content

Investigate translation with headless browsers for better js-based loading website support #169

Description

@adomasven

Translation solely via XHR is an issue on some translators (currently 70+ translators have test cases with defer: true), primarily because additional loading via JS happens on those websites (e.g. https://www.fao.org/documents/card/en?details=cc0461en)

  • We would need to mark translators that require running via a headless browser. Some only need to wait for JS on search pages, which is not important for TS.
  • A headless browser would be spun up via puppeteer for those translators and wait some set time before running translation.
  • An investigation into resource usage is required
  • An investigation into sandboxing cookies/localstorage is required between translation runs
  • An investigation into running on AWS lambda is required

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions