Set the `translate` attribute for MathJax HTML nodes to `no`, except <mtext>
Is your feature request related to a problem? Please describe.
MathJax-rendered content is inadvertently translated during page localization. This can lead to incorrect translations of mathematical expressions or symbols, which are typically not meant to be translated. However, text within <mtext> (TeX: \text{...}) is often intended to be translatable.
Describe the solution you'd like
I suggest that MathJax nodes should have the HTML translate attribute set to no by default (or inherited from ancestor nodes). This would ensure that mathematical content is not translated during localization. However, for <mtext> the translate attribute should be set to yes or unset, allowing their content to be translated as intended.
Describe alternatives you've considered Use SVG renderer.
Additional context
This suggestion is based on the HTML translate attribute described here: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/translate. It specifies whether an element's translatable attribute values and its Text node children should be translated when the page is localized.
I am unsure whether this issue has been raised before, as it seems like a common concern when dealing with localization of mathematical content.
Whether this would work probably depends on how the translation is being performed. In order for this to work, the translation would have to be done on the page after mathjax has run, but I suspect that services like Google Translate operate on the source HTML document, which would be before MathJax runs.
I admit that I haven't tested anything to see how it is done, so some testing would be in order to see if this really does what is required.