Skip to content

Commit

Permalink
Merge pull request #413 from dehilsterlexis/LOCALIZE_COMMAND_TS
Browse files Browse the repository at this point in the history
fix: add localize function to input box title and place holder
  • Loading branch information
GordonSmith authored Apr 17, 2024
2 parents 28966ea + ea98e7e commit 5804edd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/notebook/controller/command.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as vscode from "vscode";
import localize from "../../util/localize";
import { serializer } from "./serializer";

export let commands: Commands;
Expand Down Expand Up @@ -57,7 +58,7 @@ export class Commands {
async cellName(cell: vscode.NotebookCell) {
const node = serializer.node(cell);
node.name = node.name ?? "";
const name = await vscode.window.showInputBox({ value: node.name, title: "Result Name", placeHolder: "Result Name" });
const name = await vscode.window.showInputBox({ value: node.name, title: localize("Result Name"), placeHolder: localize("Result Name") });
if (name !== undefined) {
node.name = name;
}
Expand All @@ -72,7 +73,7 @@ export class Commands {
name: "",
...node?.data?.source,
};
const name = await vscode.window.showInputBox({ value: data.source.name, title: "Database Name", placeHolder: "Database Name" });
const name = await vscode.window.showInputBox({ value: data.source.name, title: localize("Database Name"), placeHolder: localize("Database Name") });
if (name !== undefined) {
data.source.name = name;
node.data = data;
Expand Down

0 comments on commit 5804edd

Please sign in to comment.