If we want `localize()` to work properly when `id` is undefined or empty, we should probably clear the element text content:
```javascript
if (id) {
  element.dataset.l10nId = id;
} else {
  element.dataset.l10nId = '';
  element.textContent = '';
  return;
}