Let’s factorize some code by adding this to `js/utils.js`:
```javascript
/**
 * L10n helper
 */

function localize(element, id, args) {
  if (!element || !id || !navigator.mozL10n)
    return;

  element.dataset.l10nId = id;
  if (args) {
    element.dataset.l10nArgs = JSON.stringify(args);
  }
  navigator.mozL10n.translate(element);
}
```

so we could do this in `js/connectivity.js` and everywhere else in the Settings app:
```javascript
      localize(wifiDesc, 'fullStatus-' +
          wifiManager.connection.status,
          wifiManager.connection.network);
```

The `localize()` function should probably be added to `shared/js/l10n.js` directly but I can’t suggest any sharp API right now, so I’m OK to define it in `js/utils.js` for the moment.