Migrate all mozL10n.localize use cases to:
if no l10nArgs: node.setAttribute('data-l10n-id', l10nId);
if l10nArgs: navigator.mozL10n.setAttributes(node, l10nId, l10nArgs);
Once bug 992473 and bug 994519 are fixed, we should clean up uses of mozL10n.localize
There are 84 uses in gaia apps, and I suspect that most of them should stay, but they may have redundant code (that applies content to node etc.).
*** This bug has been marked as a duplicate of bug 994519 ***
we want to split this work into two chunks:
- add the updated API in bug 994519
- convert the uses of localize and remove it in this bug.
Marking as good first bug.
All we have to do here is find all uses of mozL10n.localize and replace them with mozL10n.setAttributes.
I would like to work on this bug! can you assign this to me!
We're done with mozL10n.localize! Thanks everyone who has helped with patches and reviews :)