Граф коммитов

9 Коммитов

Автор SHA1 Сообщение Дата
Abhishek Aggarwal effe595994
Removed bergamot translator's wormhole artifacts (#353)
- Use only non-wormhole artifacts
2022-06-07 12:03:54 +02:00
Andre Natal 2bcc17f16c
Use DOMPurify to escape outbound translations widget labels (#304)
* Use DOMPurify to escape outbound transaltions widget labels

* Adding DOMPurify to linter and simplify its usage

* Replace DOMPurify by v2.3.6
2022-05-03 18:19:17 +02:00
Abhishek Aggarwal 52bfc43eb3
Enable translations for non x86 architecture (#205)
* Added JS artifact of bergamot translator wasm engine

 - Non wormhole JS artifact to run on non-x86 platforms

* Enable translation support for Non x86 architectures

 - Based on the client platform info, run the appropriate
   wasm artifacts

* Ran linter and fixed issues

* Fixed error

 - Rebased had  caused a mess
 - Removed a leftover multiline comment

* Refactored platform detection code

* Added tests for testing non-wormhole fallback gemm

 - Fixed e2e test script

* Ran linter

* Removed all logs added for debugging
2022-04-04 15:41:27 -07:00
Andre Natal 8ca96cdace
Replaces cld by fasttext (#152)
* Replaces cld by fasttext

* fixing linter

* Removing leftovers from other issue

* removing more leftovers

* Adding back csp to the manifest

* Organizing assets better in the right folders

* Make comment about norwegian more clear

* fix typo on comments
2022-03-10 16:51:35 -08:00
Andre Natal abe0531e6e
Adding HTML Translations (#127)
* Adding HTML Translations

* Adding credits

* Updating linter

* Fixes linter, form translations, and some other incompatibilities.
2022-03-02 07:12:44 -08:00
Andre Natal bb3411e7ad
Stabilization and polishing of outbound translations (#55)
* Always keep outbound translation widget on top of the dom elements

* Make outbound translation work with the batching mechanism

* Log cleaning.

* Resolve issue with outbound translations being too slow by loading it within the engine and model construction.

* Attach to input texts.

* Adding mutationobserver to OutboundTranslations.js

* No more issues on detach

* Outbound translations requests should have priority

* We should not scan the outbound translations node

* Adding a status label to the widget.

* We are safe to set the widget to have the highest possible zindex

* Store the widget's content per form element

* Scroll all textareas together

* Few layout improvements.

* fixes linter
2022-02-09 07:42:12 -08:00
Andre Natal 5dbb408fa8 fixing remaining linting issues 2021-11-11 12:51:44 -08:00
Andre Natal 608da44602 more lint fixes 2021-11-11 12:51:44 -08:00
Andre Natal 3f109ab726 Adding eslint 2021-11-11 12:51:44 -08:00