From a1691a148548c564e23c9fc7376cd1aa2ff0353a Mon Sep 17 00:00:00 2001 From: Maxim Leshchenko Date: Fri, 24 Dec 2021 22:58:36 +0200 Subject: [PATCH] L10n: Fix work of JS tr function with numbered strings --- Web/static/js/l10n.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Web/static/js/l10n.js b/Web/static/js/l10n.js index f24801b8..6c569975 100755 --- a/Web/static/js/l10n.js +++ b/Web/static/js/l10n.js @@ -17,10 +17,10 @@ function tr(string, ...args) { } let newOutput = window.lang[numberedString]; - if(newOutput === null) + if(newOutput == null) newOutput = window.lang[string + "_other"]; - if(newOutput === null) + if(newOutput == null) newOutput = output; output = newOutput;