mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
L10n: Fix work of JS tr function with numbered strings
This commit is contained in:
parent
48bfd36807
commit
a1691a1485
1 changed files with 2 additions and 2 deletions
|
@ -17,10 +17,10 @@ function tr(string, ...args) {
|
||||||
}
|
}
|
||||||
|
|
||||||
let newOutput = window.lang[numberedString];
|
let newOutput = window.lang[numberedString];
|
||||||
if(newOutput === null)
|
if(newOutput == null)
|
||||||
newOutput = window.lang[string + "_other"];
|
newOutput = window.lang[string + "_other"];
|
||||||
|
|
||||||
if(newOutput === null)
|
if(newOutput == null)
|
||||||
newOutput = output;
|
newOutput = output;
|
||||||
|
|
||||||
output = newOutput;
|
output = newOutput;
|
||||||
|
|
Loading…
Reference in a new issue