Skip to content

Web Translation API #147

Closed
Closed
@domenic

Description

Introduction

Browsers are increasingly offering language translation to their users. Such translation capabilities can also be useful to web developers. This is especially the case when browser's built-in translation abilities cannot help, such as:

  • translating user input or other interactive features;
  • pages with complicated DOMs which trip up browser translation;
  • providing in-page UI to start the translation; or
  • translating content that is not in the DOM, e.g. spoken content.

To perform translation in such cases, web sites currently have to either call out to cloud APIs, or bring their own translation models and run them using technologies like WebAssembly and WebGPU. This proposal introduces a new JavaScript API for exposing a browser's existing language translation abilities to web pages, so that if present, they can serve as a simpler and less resource-intensive alternative.

Read the complete Explainer.

Feedback

Please provide all feedback below.

I welcome feedback in this thread, but encourage you to file bugs against the Explainer.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    Category: JSCategory for JS language proposals.Category: Media & RTCFor Media (video/audio) and Real-Time Communications proposals.Category: UncategorizedProposals that defy categorization, or don't fit into any other existing category.Category: Web AppsProposals that aim to bring more App-like behaviors and functionality to the web.repo_adopted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

        翻译: