fix timer day translation
authorRaphaël Jakse <raphael.trivabble@jakse.fr>
Sat, 12 Dec 2020 10:01:46 +0000 (11:01 +0100)
committerRaphaël Jakse <raphael.trivabble@jakse.fr>
Sat, 12 Dec 2020 10:01:46 +0000 (11:01 +0100)
public/trivabble.js

index 74e0c0b66005bde833791edd366ba1248ef0c180..717ebd8c7f69519d3288c9476454f893ca761ab1 100644 (file)
         const sec = (s < 10) ? "0" + s : s;
         const min = (m < 10) ? "0" + m : m;
         const hour = (h < 10) ? "0" + h : h;
-        return ((d > 0) ? format(_("{0}d "), d) : "") +
+        return ((d > 0) ? format(_("{0}d"), d) + " " : "") +
             ((h + d > 0) ? format(_("{0}h {1}' {2}''"), (d > 0) ? hour : h, min, sec) : format(_("{0}' {1}''"), m, sec));
     }