L10n: Fix work of JS tr function with numbered strings

This commit is contained in:
Maxim Leshchenko 2021-12-24 22:58:36 +02:00
parent 48bfd36807
commit a1691a1485
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -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;