fix: open translation correctly from the options page

When trying to show a translation in a new tab after selecting text in
the options page and clicking the "Translate selection" context menu
item, the extension didn't open the tab at all.

This CL fixes this issue by not passing an openerTabId when it isn't

Fixed: translateselectedtext:22
Change-Id: I255073cba84bd574d2296468dc21736071f5e821
1 file changed
tree: 8b254bb782eccd912e18468beca18fbad22fc632
  1. .github/
  2. docs/
  3. playbooks/
  4. roles/
  5. src/
  6. templates/
  7. tools/
  8. .clang-format
  9. .editorconfig
  10. .eslintrc.js
  11. .gitignore
  12. .gitreview
  13. .jsbeautifyrc
  14. .zuul.yaml
  16. Makefile
  17. OWNERS
  18. package-lock.json
  19. package.json
  21. renovate.json
  22. tagRelease.bash
  23. tsconfig.json
  24. webpack.config.js


Available in the Chrome Web Store Get it for Microsoft Edge

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 in our issue tracker:

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!


If you want to contribute to the development of the extension, you're more than welcome! The documentation for this project is currently very poor, but please open an issue in the issue tracker if you're willing to contribute and I'll make sure to prioritize writing the documentation for this extension!