Skip to content

Commit 36cd63d

Browse files
devvaannshabose
authored andcommitted
fix: add missing strings for localization
1 parent 216452d commit 36cd63d

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/extensionsIntegrated/CustomSnippets/UIHelper.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ define(function (require, exports, module) {
122122
$addNewSnippetBtn.addClass("hidden");
123123
$filterSnippetsPanel.addClass("hidden");
124124

125-
$toolbarTitle.html('Add Snippet <span id="snippets-count" class="snippets-count"></span>');
125+
$toolbarTitle.html(`${Strings.CUSTOM_SNIPPETS_ADD_PANEL_TITLE} <span id="snippets-count" class="snippets-count"></span>`);
126126
}
127127

128128
/**
@@ -150,7 +150,9 @@ define(function (require, exports, module) {
150150
// add the snippet count in the toolbar (the no. of snippets added)
151151
const snippetCount = Global.SnippetHintsList.length;
152152
const countText = snippetCount > 0 ? `(${snippetCount})` : "";
153-
$toolbarTitle.html(`Custom Snippets <span id="snippets-count" class="snippets-count">${countText}</span>`);
153+
$toolbarTitle.html(
154+
`${Strings.CUSTOM_SNIPPETS_PANEL_TITLE} <span id="snippets-count" class="snippets-count">${countText}</span>`
155+
);
154156

155157
$("#filter-snippets-input").val("");
156158
}
@@ -175,7 +177,7 @@ define(function (require, exports, module) {
175177
$filterSnippetsPanel.addClass("hidden");
176178

177179
// Update toolbar title
178-
$toolbarTitle.html('Edit Snippet <span id="snippets-count" class="snippets-count"></span>');
180+
$toolbarTitle.html(`${Strings.CUSTOM_SNIPPETS_EDIT_PANEL_TITLE} <span id="snippets-count" class="snippets-count"></span>`);
179181
}
180182

181183
/**
@@ -218,7 +220,9 @@ define(function (require, exports, module) {
218220
const $toolbarTitle = $(".toolbar-title");
219221
const snippetCount = Global.SnippetHintsList.length;
220222
const countText = snippetCount > 0 ? `(${snippetCount})` : "";
221-
$toolbarTitle.html(`Custom Snippets <span id="snippets-count" class="snippets-count">${countText}</span>`);
223+
$toolbarTitle.html(
224+
`${Strings.CUSTOM_SNIPPETS_PANEL_TITLE} <span id="snippets-count" class="snippets-count">${countText}</span>`
225+
);
222226
}
223227

224228
exports.showEmptySnippetMessage = showEmptySnippetMessage;

src/nls/root/strings.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,6 +1592,8 @@ define({
15921592
// Custom Snippets
15931593
"CUSTOM_SNIPPETS_MENU_ITEM_NAME": "Custom Snippets\u2026",
15941594
"CUSTOM_SNIPPETS_PANEL_TITLE": "Custom Snippets",
1595+
"CUSTOM_SNIPPETS_ADD_PANEL_TITLE": "Add Snippet",
1596+
"CUSTOM_SNIPPETS_EDIT_PANEL_TITLE": "Edit Snippet",
15951597
"CUSTOM_SNIPPETS_ADD_NEW_TITLE": "Add new snippet",
15961598
"CUSTOM_SNIPPETS_BACK_TO_LIST_TITLE": "Back to snippets list",
15971599
"CUSTOM_SNIPPETS_BACK": "Back",

0 commit comments

Comments
 (0)