Closed Bug 1756805 Opened 2 years ago Closed 2 years ago

Pocket in about:welcome does not update after live language switching

Categories

(Core :: Internationalization, enhancement, P1)

enhancement

Tracking

()

VERIFIED FIXED
100 Branch
Tracking Status
firefox100 --- verified

People

(Reporter: gregtatum, Assigned: gregtatum)

References

Details

Attachments

(3 files)

Attached image image.png

If you download an es-ES browser, Pocket is not shown. However, if you download an en-US browser, and install an es-ES langpack, Pocket is still shown. It seems like this widget should key off of the langpack rather than the browser's built-in language.

This is even worse when switching from LTR to RTL, as the RTL view of pocket is broken. It appears if you restart the browser it correctly hides the view though.

Attached image rtl

Here is the RTL view, which is showing English text going RTL.

Ok, looking into this a full restart seems to fix things, so I don't think the previous behavior is broken at all. The fix here for the new live language switching behavior is to listen for the "intl:app-locales-changed" event, and update the UI to hide non-supported locales.

Summary: Pocket in about:welcome shows depending on the built language of the browser, but not on the langpack → Pocket in about:welcome does not update after live language switching
Assignee: nobody → gtatum
Priority: P2 → P1
Pushed by gtatum@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b574f396c035
Listen for locale changes for top stories; r=platform-i18n-reviewers,dminor
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
Flags: qe-verify+

This enhancement was implemented on Firefox 100 with the new Live Language feature. I verified this on Firefox 100.0b8(20220419190903) on Win10 64-bits, macOS 11 and Ubuntu 20.04; switching languages will automatically translate Pocket in about:welcome now.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: