Firefox Translations is a WebExtension that enables client side in-page translations for web browsers.
Testing
Nightly builds
You can test nightly builds of the extension in Firefox Nightly or Developer Edition in one of the languages supported by following the steps below:
Type about:config in the navigation bar and set the following preferences:
xpinstall.signatures.required to false
extensions.experiments.enabled to true
Then install the extension by clicking here
You may need to restart your browser and Firefox Translations will be ready to use. Just browse to a website in one of the languages supported and the option to translate should be displayed.
Development
3rd party dependencies
The extension does not utilize any npm modules, and the only vendored dependencies within are:
Bergamot Translator
A WebAssembly wrapper around the actual Neural Machine Translator, Marian. The code to build the WASM module can be found on its repository
Fasttext
We bundle the WebAssembly port of fasttext along its compressed model in order to detect the page's language. Instructions to build the WebAssembly module can be found here
请发表评论