Pocket in about:welcome does not update after live language switching
Categories
(Core :: Internationalization, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox100 | --- | verified |
People
(Reporter: gregtatum, Assigned: gregtatum)
References
Details
Attachments
(3 files)
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.
Assignee | ||
Comment 1•2 years ago
|
||
Here is the RTL view, which is showing English text going RTL.
Assignee | ||
Comment 2•2 years ago
•
|
||
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.
- The decision on showing is made in ActivityStream.jsm#506
- The UI is specified as hidden in ActivityStream.jsm#147. This is
"feeds.section.topstories.options"
- This pref is read in SectionsManager.jsm#59
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
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
Comment 5•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Comment 6•2 years ago
|
||
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.
Description
•