NLS the suggestion label

This commit is contained in:
Nick O'Leary
2025-06-25 17:24:58 +01:00
parent 1552fe20c5
commit 303e606a74
2 changed files with 2 additions and 2 deletions

View File

@@ -573,6 +573,7 @@
"filter": "filter nodes",
"search": "search modules",
"addCategory": "Add new...",
"loadingSuggestions": "Loading suggestions...",
"label": {
"subflows": "subflows",
"network": "network",

View File

@@ -182,7 +182,6 @@ RED.typeSearch = (function() {
addItem: function(container, i, nodeItem) {
// nodeItem can take multiple forms
// - A node type: {type: "inject", def: RED.nodes.getType("inject"), label: "Inject"}
// - A flow suggestion: { suggestion: true, nodes: [] }
// - A placeholder suggestion: { suggestionPlaceholder: true, label: 'loading suggestions...' }
let nodeDef = nodeItem.def;
@@ -469,7 +468,7 @@ RED.typeSearch = (function() {
if (suggestionPlugins.length > 0) {
const suggestionItem = {
suggestionPlaceholder: true,
label: 'loading suggestions...', // TODO: NLS
label: RED._('palette.loadingSuggestions'),
separator: true,
i: index++
}