Rename Command Label

I want to rename some default command label for my application. for example I want to rename OpenFolder to OpenProject, I do a test on the CommonCommands.ABOUT_COMMAND


the menu display ok, but the command line still has original ‘About’ label, how to fix this?

@wss Looking at the Command interface you will find both label and originalLabel properties. The distinction between them is relevant for i18n support, where we still want to show the original label - hence the originalLabel property - for commands even if the label has been localized to a different language. You’ll need to do this:

CommonCommands.ABOUT_COMMAND.label = nls.localize('aboutMe', 'About Me');
CommonCommands.ABOUT_COMMAND.originalLabel = 'About Me';