mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-16 21:59:28 +00:00
Translating Arduino-IDE using Theia's nls API (#545)
This commit is contained in:
@@ -5,13 +5,17 @@ import {
|
||||
KeymapsCommands,
|
||||
} from '@theia/keymaps/lib/browser/keymaps-frontend-contribution';
|
||||
import { ArduinoMenus } from '../../menu/arduino-menus';
|
||||
import { nls } from '@theia/core/lib/browser/nls';
|
||||
|
||||
@injectable()
|
||||
export class KeymapsFrontendContribution extends TheiaKeymapsFrontendContribution {
|
||||
registerMenus(menus: MenuModelRegistry): void {
|
||||
menus.registerMenuAction(ArduinoMenus.FILE__ADVANCED_SUBMENU, {
|
||||
commandId: KeymapsCommands.OPEN_KEYMAPS.id,
|
||||
label: 'Keyboard Shortcuts',
|
||||
label: nls.localize(
|
||||
'vscode/helpActions/miKeyboardShortcuts',
|
||||
'Keyboard Shortcuts'
|
||||
),
|
||||
order: '1',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user