Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/extensionsIntegrated/CustomSnippets/UIHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ define(function (require, exports, module) {
$addNewSnippetBtn.addClass("hidden");
$filterSnippetsPanel.addClass("hidden");

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

/**
Expand Down Expand Up @@ -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 <span id="snippets-count" class="snippets-count">${countText}</span>`);
$toolbarTitle.html(
`${Strings.CUSTOM_SNIPPETS_PANEL_TITLE} <span id="snippets-count" class="snippets-count">${countText}</span>`
);

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

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

/**
Expand Down Expand Up @@ -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 <span id="snippets-count" class="snippets-count">${countText}</span>`);
$toolbarTitle.html(
`${Strings.CUSTOM_SNIPPETS_PANEL_TITLE} <span id="snippets-count" class="snippets-count">${countText}</span>`
);
}

exports.showEmptySnippetMessage = showEmptySnippetMessage;
Expand Down
2 changes: 2 additions & 0 deletions src/nls/root/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading