I’d prefer to keep:
```javascript
navigator.mozL10n.localize(element, param.value, param.l10n);
```

and check that the last argument is an object in shared/js/l10n.js, line 1126.