diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js b/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js
index acb479670..8d11240d0 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js
@@ -802,16 +802,16 @@ RED.subflow = (function() {
}
$("", opt).text(item.text).appendTo(locales);
});
- currentLocale = RED.i18n.lang();
- locales.val(currentLocale);
+ var locale = RED.i18n.lang();
+ locales.val(locale);
locales.on("change", function() {
- var locale = $(this).val();
+ currentLocale = $(this).val();
var items = $("#node-input-env-container").editableList("items");
items.each(function (i, item) {
var entry = $(this).data('data');
var labelField = entry.ui.labelField;
- labelField.val(lookupLabel(entry.ui.label, "", locale));
+ labelField.val(lookupLabel(entry.ui.label, "", currentLocale));
if (labelField.timeout) {
clearTimeout(labelField.timeout);
delete labelField.timeout;
@@ -1371,7 +1371,8 @@ RED.subflow = (function() {
}
var labels = ui.label || {};
- var labelText = lookupLabel(labels, labels["en-US"]||tenv.name, currentLocale);
+ var locale = RED.i18n.lang();
+ var labelText = lookupLabel(labels, labels["en-US"]||tenv.name, locale);
var label = $('