This repository has been archived by the owner on Sep 4, 2023. It is now read-only.
translate
class ignored after seeing notranslate
#607
Labels
Describe the bug
Elements with a
notranslate
class are ignored byInPageTranslation
. Websites like Mastodon also seem to use this to get around issues with Google Translate. However, they also mark elements that they do want translated with atranslate
class. Firefox Translations ignores that class at the moment.To Reproduce
Have a page with something like this:
If you translate that page then with Google Chrome, only the last sentence will be translated. If you translate it with Firefox Translations, it doesn't.
Expected behavior
Translate elements that are marked with
class="translate"
when they appear inside anclass="notranslate"
ortranslate="no"
element.Desktop (please complete the following information as possible):
Additional context
I haven't been able to find any documentation for Google Translate that says that
class="translate"
should work. But empirically it does.The text was updated successfully, but these errors were encountered: