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
3 changed files with 19 additions and 12 deletions

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',
};
}
}