Improve SelectTranslationsPanel language detection algorithm
Categories
(Firefox :: Translations, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox126 | --- | fixed |
People
(Reporter: nordzilla, Assigned: nordzilla)
References
Details
Attachments
(1 file)
Description
We should attempt to improve the experience of SelectTranslationsPanel's language detection in the even that that detected language of the selected text is not supported for translation by falling back to the document's specified language tag if it is specified and supported for translation.
Steps to implement
Attempt to use the detected language(s) if they are supported.
Otherwise, attempt to use the document's specified language tag if it is supported.
Tests to implement
Open the panel on text that is not supported, with a doc lang tag that is supported, and ensure the doc lang tag was chosen.
Assignee | ||
Comment 1•8 months ago
|
||
Adds some logical fallbacking to the SelectTranslationsPanel language
detection algorithm to try to improve user experience when the
detected language is unsupported for translation.
Depends on D205731
Updated•8 months ago
|
Comment 3•7 months ago
|
||
bugherder |
Description
•