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();
|
$(".palette-spinner").show();
|
||||||
if (RED.settings.paletteCategories) {
|
if (RED.settings.paletteCategories) {
|
||||||
RED.settings.paletteCategories.forEach(function(category){
|
RED.settings.paletteCategories.forEach(function(category){
|
||||||
createCategoryContainer(category, category); // TODO NLS enable categories from settings
|
createCategoryContainer(category, RED._("palette.label."+category,{defaultValue:category}));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
core.forEach(function(category){
|
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",
|
"noInfo": "no information available",
|
||||||
"popOverError": "Error generating pop-over label for '__type__'.",
|
"popOverError": "Error generating pop-over label for '__type__'.",
|
||||||
"filter": "filter",
|
"filter": "filter",
|
||||||
"core": {
|
"label": {
|
||||||
"subflows": "subflows",
|
"subflows": "subflows",
|
||||||
"input": "input",
|
"input": "input",
|
||||||
"output": "output",
|
"output": "output",
|
||||||
|
Loading…
Reference in New Issue
Block a user