From 5b8fd1a44dc26a853af0ac42711b014e17530a52 Mon Sep 17 00:00:00 2001 From: Odei Maiz <33152403+odeimaiz@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:41:33 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20[Frontend]=20Fix=20replaceTokens?= =?UTF-8?q?=20function=20(#6539)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static-webserver/client/source/class/osparc/utils/Utils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/static-webserver/client/source/class/osparc/utils/Utils.js b/services/static-webserver/client/source/class/osparc/utils/Utils.js index 42db323492d..07cff60b282 100644 --- a/services/static-webserver/client/source/class/osparc/utils/Utils.js +++ b/services/static-webserver/client/source/class/osparc/utils/Utils.js @@ -92,6 +92,8 @@ qx.Class.define("osparc.utils.Utils", { FLOATING_Z_INDEX: 110000, replaceTokens: function(str, key, value) { + // `str` might be a a localized string, get the string first + str = str.toString ? str.toString() : str; return str.replaceAll("${"+key+"}", value); },