diff --git a/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json b/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json index fa347e6ea..366922940 100755 --- a/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json +++ b/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json @@ -792,7 +792,12 @@ "copyPath": "Copy path to item", "expandItems": "Expand items", "collapseItems": "Collapse items", - "duplicate": "Duplicate" + "duplicate": "Duplicate", + "array": "array", + "object": "object", + "error": { + "invalidJSON": "Invalid JSON: " + } }, "markdownEditor": { "title": "Markdown editor", diff --git a/packages/node_modules/@node-red/editor-client/locales/ja/editor.json b/packages/node_modules/@node-red/editor-client/locales/ja/editor.json index a6aab331d..e84b6c7bf 100755 --- a/packages/node_modules/@node-red/editor-client/locales/ja/editor.json +++ b/packages/node_modules/@node-red/editor-client/locales/ja/editor.json @@ -791,7 +791,12 @@ "copyPath": "要素のパスをコピー", "expandItems": "要素を展開", "collapseItems": "要素を折り畳む", - "duplicate": "複製" + "duplicate": "複製", + "array": "配列", + "object": "オブジェクト", + "error": { + "invalidJSON": "不正なJSON: " + } }, "markdownEditor": { "title": "マークダウンエディタ", diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/json.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/json.js index cce079581..c7267d885 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/editors/json.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editors/json.js @@ -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() }]); } }