l10n: add plural form

fix #74
pull/82/head
sualko 2020-09-08 17:22:12 +02:00
parent 256c505f43
commit 1f8a393e14
1 changed files with 8 additions and 1 deletions

View File

@ -4,7 +4,14 @@ $(() => {
let countdown = 30;
const interval = window.setInterval(() => {
$('#bbb-waiting-text').text(t('bbb', 'This room is not open yet. We will try it again in {sec} seconds. Please wait.', {sec: (--countdown).toString()}));
$('#bbb-waiting-text').text(
t(
'bbb',
'This room is not open yet. We will try it again in %n second. Please wait.',
'This room is not open yet. We will try it again in %n seconds. Please wait.' as any,
--countdown
)
);
if (countdown === 0) {
window.location.reload();