jelmervdl / translatelocally-web-ext

TranslateLocally for the Browser is a web-extension that enables client side in-page translations for web browsers.
https://addons.mozilla.org/en-GB/firefox/addon/translatelocally-for-firefox/
Mozilla Public License 2.0
65 stars 3 forks source link

Show original page content #32

Closed jelmervdl closed 2 years ago

jelmervdl commented 2 years ago

Provide a way to restore the original untranslated page contents without reloading the page.

For both the add-on and any stand-alone embedded version of the translation library, it will be helpful to have this feature.

Possible implementation: store original contents per text node, store original order per dom node.

Possible problems: dynamically changing pages; dom nodes that have been removed by the page after translation