Firefox Translations is a webextension that enables client side translations for web browsers.
Перейти к файлу
Andre Natal 024aade152
Adding _locales submodule pointing to https://github.com/mozilla-l10n/firefox-translations-l10n (#121)
* Adding _locales submodule pointing to https://github.com/mozilla-l10n/firefox-translations-l10n

* Removing CODEOWNERS
2022-02-24 10:51:43 -08:00
.github/workflows Adding _locales submodule pointing to https://github.com/mozilla-l10n/firefox-translations-l10n (#121) 2022-02-24 10:51:43 -08:00
extension Adding _locales submodule pointing to https://github.com/mozilla-l10n/firefox-translations-l10n (#121) 2022-02-24 10:51:43 -08:00
scripts Fix telemetry schema and add validation (#118) 2022-02-22 12:03:55 -08:00
.eslintrc.js Stabilization and polishing of outbound translations (#55) 2022-02-09 07:42:12 -08:00
.gitignore First commit of the actual code 2021-11-11 12:51:44 -08:00
.gitmodules Adding _locales submodule pointing to https://github.com/mozilla-l10n/firefox-translations-l10n (#121) 2022-02-24 10:51:43 -08:00
LICENSE Initial commit 2021-09-07 12:56:03 -07:00
README.md Fix telemetry schema and add validation (#118) 2022-02-22 12:03:55 -08:00
package-lock.json Bump nanoid from 3.1.30 to 3.2.0 (#85) 2022-02-09 12:52:35 -08:00
package.json Adding _locales submodule pointing to https://github.com/mozilla-l10n/firefox-translations-l10n (#121) 2022-02-24 10:51:43 -08:00

README.md

Build CodeQL End-to-End Tests

Firefox Translations

Firefox Translations is a webextension that enables client side in-page translations for web browsers.

Instructions to run

Development

Updating telemetry schema

After adding new metrics to extension/model/telemetry/metrics.yaml or pings to extension/model/telemetry/pings.yaml, run

bash scripts/update-telemetry-schema.sh

to regenerate JS telemetry schema.

Updating bergamot-translator WASM module

After replacing extension/controller/translation/bergamot-translation-worker.js, run

bash scripts/update-bergamot-translator.sh

to regenerate JS version file. This version is reported in telemetry.

Testing

Preliminary builds

One can test preliminary versions of the extension in Firefox Nightly since an artifact is generated on every commit. In order to do that, go to the Github Action, click at the commit you wish to test, and then click to download the artifact as a zip file at the end of the page. With that:

  • Download Firefox Nightly
  • Type about:addons in the navigation bar, click on the gear to he right, then on install from a file and load the saved zip file.
  • Type about:config in the navigation bar again, and switch the following preferences:
    • extensions.translations.disabled to true
    • extensions.experiments.enabled to true
    • javascript.options.wasm_simd_wormhole to true
    • xpinstall.signatures.required to false

And then you should be able to use the extension.