diff --git a/src/extensionsIntegrated/CustomSnippets/UIHelper.js b/src/extensionsIntegrated/CustomSnippets/UIHelper.js index 1acf5c7bd9..545214da0b 100644 --- a/src/extensionsIntegrated/CustomSnippets/UIHelper.js +++ b/src/extensionsIntegrated/CustomSnippets/UIHelper.js @@ -122,7 +122,7 @@ define(function (require, exports, module) { $addNewSnippetBtn.addClass("hidden"); $filterSnippetsPanel.addClass("hidden"); - $toolbarTitle.html('Add Snippet '); + $toolbarTitle.html(`${Strings.CUSTOM_SNIPPETS_ADD_PANEL_TITLE} `); } /** @@ -150,7 +150,9 @@ define(function (require, exports, module) { // add the snippet count in the toolbar (the no. of snippets added) const snippetCount = Global.SnippetHintsList.length; const countText = snippetCount > 0 ? `(${snippetCount})` : ""; - $toolbarTitle.html(`Custom Snippets ${countText}`); + $toolbarTitle.html( + `${Strings.CUSTOM_SNIPPETS_PANEL_TITLE} ${countText}` + ); $("#filter-snippets-input").val(""); } @@ -175,7 +177,7 @@ define(function (require, exports, module) { $filterSnippetsPanel.addClass("hidden"); // Update toolbar title - $toolbarTitle.html('Edit Snippet '); + $toolbarTitle.html(`${Strings.CUSTOM_SNIPPETS_EDIT_PANEL_TITLE} `); } /** @@ -218,7 +220,9 @@ define(function (require, exports, module) { const $toolbarTitle = $(".toolbar-title"); const snippetCount = Global.SnippetHintsList.length; const countText = snippetCount > 0 ? `(${snippetCount})` : ""; - $toolbarTitle.html(`Custom Snippets ${countText}`); + $toolbarTitle.html( + `${Strings.CUSTOM_SNIPPETS_PANEL_TITLE} ${countText}` + ); } exports.showEmptySnippetMessage = showEmptySnippetMessage; diff --git a/src/nls/root/strings.js b/src/nls/root/strings.js index 6025ed3611..1155d661b3 100644 --- a/src/nls/root/strings.js +++ b/src/nls/root/strings.js @@ -1592,6 +1592,8 @@ define({ // Custom Snippets "CUSTOM_SNIPPETS_MENU_ITEM_NAME": "Custom Snippets\u2026", "CUSTOM_SNIPPETS_PANEL_TITLE": "Custom Snippets", + "CUSTOM_SNIPPETS_ADD_PANEL_TITLE": "Add Snippet", + "CUSTOM_SNIPPETS_EDIT_PANEL_TITLE": "Edit Snippet", "CUSTOM_SNIPPETS_ADD_NEW_TITLE": "Add new snippet", "CUSTOM_SNIPPETS_BACK_TO_LIST_TITLE": "Back to snippets list", "CUSTOM_SNIPPETS_BACK": "Back",