Add i18n for json editor title when readonly

This commit is contained in:
Steve-Mcl
2022-04-27 12:52:41 +01:00
parent fcdf252f03
commit 3e16cc4912
3 changed files with 6 additions and 4 deletions

View File

@@ -618,17 +618,15 @@
tabs.addTab({
id: 'json-raw',
label: options.readOnly ? "JSON" : RED._('jsonEditor.rawMode'),
label: options.readOnly ? RED._('jsonEditor.rawMode-readonly') : RED._('jsonEditor.rawMode'),
content: $("#red-ui-editor-type-json-tab-raw")
});
tabs.addTab({
id: 'json-ui',
label: options.readOnly ? "Visual" : RED._('jsonEditor.uiMode'),
label: options.readOnly ? RED._('jsonEditor.uiMode-readonly') : RED._('jsonEditor.uiMode'),
content: $("#red-ui-editor-type-json-tab-ui")
});
finishedBuild = true;
},
close: function() {
if (options.onclose) {