update support of i18n of JSON editor

This commit is contained in:
Hiroyasu Nishiyama
2019-10-31 12:26:04 +09:00
parent 3a1d0f3695
commit 8c1aa83d12
3 changed files with 15 additions and 5 deletions

View File

@@ -302,8 +302,8 @@
types:[
'str','num','bool',
{value:"null",label:"null",hasValue:false},
{value:"array",label:"array",hasValue:false},
{value:"object",label:"object",hasValue:false}
{value:"array",label:RED._("jsonEditor.array"),hasValue:false},
{value:"object",label:RED._("jsonEditor.object"),hasValue:false}
],
default: valType
});
@@ -577,7 +577,7 @@
} catch(err) {
rootNode = null;
list.treeList('data',[{
label: "Invalid JSON: "+err.toString()
label: RED._("jsonEditor.error.invalidJSON")+err.toString()
}]);
}
}