The following is preferred:
```javascript
// Localize the titlebar text based on the tone type 
navigator.mozL10n.localize(title, toneType + '-title');
```

It should be equivalent, but it ensures the l10n-id attributes are properly set (which is nice when changing the language dynamically).