From ea98e7e8c43ae2382c00b0dab9617f00e6badd58 Mon Sep 17 00:00:00 2001 From: David de Hilster Date: Wed, 17 Apr 2024 09:26:36 -0400 Subject: [PATCH] fix: add localize function to input box title and place holder Signed-off-by: David de Hilster --- src/notebook/controller/command.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/notebook/controller/command.ts b/src/notebook/controller/command.ts index 58d09dc1..c9d263dd 100644 --- a/src/notebook/controller/command.ts +++ b/src/notebook/controller/command.ts @@ -1,4 +1,5 @@ import * as vscode from "vscode"; +import localize from "../../util/localize"; import { serializer } from "./serializer"; export let commands: Commands; @@ -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; } @@ -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;