Open Bug 1703417 Opened 5 years ago Updated 5 years ago

Remove sync translations from `browser-sync.js`

Categories

(Firefox :: Sync, task)

task
Points:
2

Tracking

()

People

(Reporter: emmamalysz, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [proton-cleanups])

We're synchronously fetching fluent values via formatValueSync multiple times throughout this file.

I believe we can call await window.document.l10n.translateFragment(this.panel); around here: https://searchfox.org/mozilla-central/rev/ee9dab6aa95f167a34cb178960f7375210a0bba4/browser/components/customizableui/content/panelUI.js#233 to make sure the translations are ready.

We will most likely have to do a similar call when we open the fxa panel.

Once they're ready, we should be able to rely on using setAttribute("data-l10n-id"... instead for these elements

Whiteboard: [proton-cleanups]
Points: --- → 2
You need to log in before you can comment on or make changes to this bug.