mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Try to use default palette label nls message if found
This commit is contained in:
parent
fe9dc6b272
commit
757caeb9a4
@ -269,11 +269,11 @@ RED.palette = (function() {
|
||||
$(".palette-spinner").show();
|
||||
if (RED.settings.paletteCategories) {
|
||||
RED.settings.paletteCategories.forEach(function(category){
|
||||
createCategoryContainer(category, category); // TODO NLS enable categories from settings
|
||||
createCategoryContainer(category, RED._("palette.label."+category,{defaultValue:category}));
|
||||
});
|
||||
} else {
|
||||
core.forEach(function(category){
|
||||
createCategoryContainer(category, RED._("palette.core."+category));
|
||||
createCategoryContainer(category, RED._("palette.label."+category,{defaultValue:category}));
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,7 @@
|
||||
"noInfo": "no information available",
|
||||
"popOverError": "Error generating pop-over label for '__type__'.",
|
||||
"filter": "filter",
|
||||
"core": {
|
||||
"label": {
|
||||
"subflows": "subflows",
|
||||
"input": "input",
|
||||
"output": "output",
|
||||
|
Loading…
Reference in New Issue
Block a user