mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 15:34:26 +01:00
NLS the suggestion label
This commit is contained in:
@@ -573,6 +573,7 @@
|
||||
"filter": "filter nodes",
|
||||
"search": "search modules",
|
||||
"addCategory": "Add new...",
|
||||
"loadingSuggestions": "Loading suggestions...",
|
||||
"label": {
|
||||
"subflows": "subflows",
|
||||
"network": "network",
|
||||
|
||||
@@ -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++
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user