fix plural in keyboard move clock
This commit is contained in:
parent
2073323359
commit
d904678526
|
@ -126,7 +126,7 @@ function readClocks(clockCtrl: any | undefined) {
|
|||
const date = new Date(time);
|
||||
const msg = (time >= 3600000 ? simplePlural(Math.floor(time / 3600000), 'hour') : '') + ' ' +
|
||||
simplePlural(date.getUTCMinutes(), 'minute') + ' ' +
|
||||
simplePlural(date.getUTCSeconds(), 'seconds');
|
||||
simplePlural(date.getUTCSeconds(), 'second');
|
||||
return `${color}: ${msg}`;
|
||||
});
|
||||
window.lichess.sound.say(msgs.join('. '));
|
||||
|
|
Loading…
Reference in a new issue