1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #2362 from node-red-hitachi/i18n-json-editor

Update support of i18n of visual JSON editor
This commit is contained in:
Nick O'Leary 2019-11-18 11:32:19 +00:00 committed by GitHub
commit 2aef99c440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 5 deletions

View File

@ -803,7 +803,10 @@
"copyPath": "Copy path to item", "copyPath": "Copy path to item",
"expandItems": "Expand items", "expandItems": "Expand items",
"collapseItems": "Collapse items", "collapseItems": "Collapse items",
"duplicate": "Duplicate" "duplicate": "Duplicate",
"error": {
"invalidJSON": "Invalid JSON: "
}
}, },
"markdownEditor": { "markdownEditor": {
"title": "Markdown editor", "title": "Markdown editor",

View File

@ -802,7 +802,10 @@
"copyPath": "要素のパスをコピー", "copyPath": "要素のパスをコピー",
"expandItems": "要素を展開", "expandItems": "要素を展開",
"collapseItems": "要素を折り畳む", "collapseItems": "要素を折り畳む",
"duplicate": "複製" "duplicate": "複製",
"error": {
"invalidJSON": "不正なJSON: "
}
}, },
"markdownEditor": { "markdownEditor": {
"title": "マークダウンエディタ", "title": "マークダウンエディタ",

View File

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