instead of calling directly the localize method of navigator.mozL10n wouldn't it be better to call

button.textContent = _('mergeActionButtonLabel', { n: checked} )