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.
Feedback
Please provide all feedback below.
I welcome feedback in this thread, but encourage you to file bugs against the Explainer.
Activity