browser/extensions/translations/README
author Morgan Reschenberg <mreschenberg@mozilla.com>
Tue, 18 Jan 2022 23:31:21 +0000
changeset 605085 4c684d5d16fe3a85614e7cb56be8c0029dc98b12
parent 580802 c7e7bba07257ad2a32fe7e5252738dfd3e70058f
permissions -rw-r--r--
Bug 1748878: Use LayoutDeviceInt types for points, rects, sizes in dev pixels r=Jamie,emilio a=graft Differential Revision: https://phabricator.services.mozilla.com/D135272

This folder contains the source files for Firefox Translations, which utilizes
the proceedings from Project Bergamot [1].

The feature is developed as a webextension [2] which utilizes a neural machine
translation decoder [3] ported to WebAssembly in order to process the
in page translation. The translation models [4] are downloaded on-demand by the
extension, so there's no need to bundle them too.

The folder `extension_src` contains the entire code of the extension's xpi and
the wasm module (which lies inside the folder wasm), and is automatically
generated by the `import_xpi.py` script, which is responsibile for cloning
the extension repo [2], build it, and generate the `jar.mn` package containing
all the pertinent files necessary for running it.

For any questions, reach out to anatal@mozilla.com.

[1] https://browser.mt/
[2] https://github.com/mozilla-extensions/bergamot-browser-extension
[3] https://github.com/mozilla/bergamot-translator/
[4] https://github.com/mozilla-applied-ml/bergamot-models