Support i18n in MQTT node property

This commit is contained in:
Kazuhito Yokoi
2022-09-18 17:10:19 +09:00
parent efc0f1ab91
commit a81b1aa0cb
3 changed files with 12 additions and 4 deletions

View File

@@ -421,7 +421,11 @@
<script type="text/javascript">
(function() {
var typedInputNoneOpt = { value: 'none', label: '', hasValue: false };
var typedInputNoneOpt = {
value: 'none',
label: RED._("node-red:mqtt.label.none"),
hasValue: false
};
var makeTypedInputOpt = function(value){
return {
value: value,
@@ -436,7 +440,7 @@
makeTypedInputOpt("text/csv"),
makeTypedInputOpt("text/html"),
makeTypedInputOpt("text/plain"),
{value:"other", label:""}
{ value: "other", label: RED._("node-red:mqtt.label.other") }
];
function getDefaultContentType(value) {