Refactor options page using Lit

The Javascript code for the options page was messy and decreased the
maintainability of the entire extension. This change refactors the
existing code to use Lit, and thus separates the code into several files
which define different elements of the options page. Thus, the code is
more modular now.

Aside from the refactoring, this CL also changes the way languages are
reordered. Now, instead of dragging them in the list, they are reordered
by clicking the arrow buttons next to them. This has been changed
because the Sortable library is not compatible with Lit.

Bug: translateselectedtext:11
Change-Id: I07364628c0737cf732afc7dd53846e42b082201d
14 files changed
tree: 47f9616aff645e1f5f30c8a33b78d9aea9236526
  1. .github/
  2. docs/
  3. src/
  4. templates/
  5. tools/
  6. .clang-format
  7. .editorconfig
  8. .gitignore
  9. .gitreview
  10. .jsbeautifyrc
  11. .zuul.yaml
  13. Makefile
  14. OWNERS
  15. package-lock.json
  16. package.json
  18. tagRelease.bash
  19. webpack.config.js


The source code of the Chrome "Translate Selected Text" extension.

Do you want to help to translate this extension's UI?

If you want to help bring this extension into your native language, you can, and I would really appreciate it! Just go to the following website and start translating :)



Please, report any bugs or feature sugestions at GitHub:

Beta version

As this extension has so many users, I've decided to upload a Beta version of the extension to the Chrome Web Store so I can test it before uploading any update to the stable version! This way I can make sure that the stable version of the extension is 100% bug-free.

If you want to test the bleeding edge of this extension before everybody else, join the Google Group and download the extension (there may be bugs, you've been warned):

Special thanks

Special thanks to:

  • All the users who use the extension every day and who trust the model of developing simple extensions which do not request any privacy-breaking permissions.
  • All the users who have contributed translations. You rock!
  • BrowserStack for allowing me to use their awesome services in order to test the extension in multiple versions of Chrome and in different operating systems.

More documents