Open Bug 1821057 Opened 2 years ago Updated 1 years ago

[meta] Remove manual `translateElements` and `translateFragment` calls that are hacking around fluent translation async-ness during pageload

Categories

(Firefox :: General, task, P3)

Desktop
All
task

Tracking

()

Tracking Status
firefox112 --- wontfix

People

(Reporter: Gijs, Unassigned)

References

(Depends on 7 open bugs)

Details

(Keywords: meta)

A non-trivial portion of https://searchfox.org/mozilla-central/search?q=translateElements%28&path=js&case=false&regexp=false and https://searchfox.org/mozilla-central/search?q=translateFragment%28&path=js&case=false&regexp=false should be removable now that bug 1819664 means we don't fire the load event until l10n has taken place, even for strings only set during DCL or similar.

We should audit these callers and check which ones can be removed.

Component: Internationalization: Localization → General
Flags: needinfo?(gijskruitbosch+bugs)
Product: Core → Firefox
Depends on: 1824781
Depends on: 1824794
Depends on: 1737951
Blocks: 1824807
Depends on: 1824809
Depends on: 1824813

I've gone through translateElements but still need to look at translateFragment. I also wonder if there are docs that need updating.

Depends on: 1504216
Depends on: 1825234
Depends on: 1825236
Depends on: 1825243
Depends on: 1825246
Flags: needinfo?(gijskruitbosch+bugs)

:Gijs, should this be a meta bug? Can you help triage it?

Flags: needinfo?(gijskruitbosch+bugs)

Sure.

Severity: -- → N/A
Flags: needinfo?(gijskruitbosch+bugs)
Keywords: meta
Priority: -- → P3
Summary: Evaluate removing manual `translateElements` calls that are hacking around fluent translation async-ness during pageload → [meta] Remove manual `translateElements` and `translateFragment` calls that are hacking around fluent translation async-ness during pageload
You need to log in before you can comment on or make changes to this bug.