Localize commands (#1196)

- "check for updates"
- "open serial plotter"
This commit is contained in:
Alberto Iannaccone 2022-07-18 10:47:44 +02:00 committed by GitHub
parent 99664ee544
commit fe31d15b9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 12 deletions

View File

@ -52,9 +52,12 @@ export class IDEUpdaterCommands implements CommandContribution {
}
}
export namespace IDEUpdaterCommands {
export const CHECK_FOR_UPDATES: Command = {
id: 'arduino-ide-check-for-updates',
category: 'Arduino',
label: 'Check for Arduino IDE updates',
};
export const CHECK_FOR_UPDATES: Command = Command.toLocalizedCommand(
{
id: 'arduino-ide-check-for-updates',
label: 'Check for Arduino IDE updates',
category: 'Arduino',
},
'arduino/ide-updater/checkForUpdates'
);
}

View File

@ -18,15 +18,17 @@ const queryString = require('query-string');
export namespace SerialPlotterContribution {
export namespace Commands {
export const OPEN: Command = {
id: 'serial-plotter-open',
label: 'Serial Plotter',
category: 'Arduino',
};
export const OPEN: Command = Command.toLocalizedCommand(
{
id: 'serial-plotter-open',
label: 'Serial Plotter',
category: 'Arduino',
},
'arduino/serial/openSerialPlotter'
);
export const RESET: Command = {
id: 'serial-plotter-reset',
label: 'Reset Serial Plotter',
category: 'Arduino',
};
}
}

View File

@ -192,6 +192,7 @@
"visit": "Visit Arduino.cc"
},
"ide-updater": {
"checkForUpdates": "Check for Arduino IDE updates",
"closeAndInstallButton": "Close and Install",
"closeToInstallNotice": "Close the software and install the update on your machine.",
"downloadButton": "Download",
@ -297,6 +298,7 @@
"newLineCarriageReturn": "Both NL & CR",
"noLineEndings": "No Line Ending",
"notConnected": "Not connected. Select a board and a port to connect automatically.",
"openSerialPlotter": "Serial Plotter",
"timestamp": "Timestamp",
"toggleTimestamp": "Toggle Timestamp"
},