How can I programmatically enable and disable Extras?

well, we do have core.getMenuCommandTitle but it uses command id anyway, how would you get localization strings?