From e10dd54e2b83030b79fdd40799568133787d25b4 Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Thu, 17 Oct 2019 21:05:06 +0900 Subject: [PATCH] Revert "Merge pull request #2328 from kazuhitoyokoi/master-fixsubflowlang" This reverts commit 873bdc673300f2bacfb1b3968f1328e241fa79c8, reversing changes made to 8a40b075b57bb792a5a3324416b6601c7e893b2d. --- .../node_modules/@node-red/editor-client/src/js/ui/subflow.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 c83a1dd8a..5ea39be6a 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 @@ -806,12 +806,12 @@ RED.subflow = (function() { locales.val(currentLocale); 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;