In Bug 1830989 I am adding a setArgs method to Gecko's DOMLocalization, for ergonomics reasons. It would probably make sense to add it to https://github.com/projectfluent/fluent.js/blob/main/fluent-dom/src/dom_localization.js as well.