Closed Bug 1887953 Opened 8 months ago Closed 7 months ago

Improve SelectTranslationsPanel language detection algorithm

Categories

(Firefox :: Translations, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
126 Branch
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.

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

Attachment #9393348 - Attachment description: WIP: Bug 1887953 - Improve language detection for SelectTranslationsPanel → Bug 1887953 - Improve language detection for SelectTranslationsPanel r=#translations-reviewers!
Pushed by enordin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5695ee1969a8 Improve language detection for SelectTranslationsPanel r=translations-reviewers,gregtatum
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: