fix plural in keyboard move clock

This commit is contained in:
Thibault Duplessis 2019-05-01 15:21:03 +07:00
parent 2073323359
commit d904678526

View file

@ -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('. '));