From 1f8a393e14612dc0e5692c22dc3798713de8ab40 Mon Sep 17 00:00:00 2001 From: sualko Date: Tue, 8 Sep 2020 17:22:12 +0200 Subject: [PATCH] l10n: add plural form fix #74 --- ts/waiting.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ts/waiting.ts b/ts/waiting.ts index 0fed10c..a229976 100644 --- a/ts/waiting.ts +++ b/ts/waiting.ts @@ -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();