Open Bug 1953881 Opened 1 year ago Updated 1 year ago

Improve the Select Source Language Logic in the FullPageTranslationsPanel

Categories

(Firefox :: Translations, task)

task

Tracking

()

People

(Reporter: nordzilla, Unassigned)

References

Details

Description

In Bug 1859081 we implemented improvements to our heuristic that determines when the FullPageTranslationsPanel should be offered based on the page's declared language tag as well as the detected page language.

We have recently discussed improvements to which source language should be selected by default in cases when the panel is opened.

Here are the following scenarios with expected behaviors:

Note: All of these cases are only for situations in which the detected language tag does not match the page's declared language tag, and there is enough page content for the detected language to be above the threshold for high confidence.


Case 1)

Both the page language and the detected language are both supported by Translations

Expectation
The detected language is the selected source language when the panel is opened.


Case 2)

The page language is supported by Translations, but the detected language is not.

Expectation
The page language is the selected source language when the panel is opened.


Case 3)

The detected language is supported by Translations, but the page language is not.

Expectation
The detected language is the selected source language when the panel is opened.


Case 4)

Neither the page language nor the detected language are supported by Translations

Expectation
The detected language is used in the unsupported language message.

You need to log in before you can comment on or make changes to this bug.