Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

585 B
Raw Blame
import { getLocalizedDurationFormatter } from '../base/i18n/dateUtil';
import i18next from '../base/i18n/i18next';

export * from './functions.any';

/**
 * Description for the "Timer ended" notification on native: a plain string.
 * The middleware re-posts it each tick so the overrun counter stays live.
 *
 * @param {number} overSeconds - Seconds over the scheduled end.
 * @returns {string}
 */
export function buildTimerEndedDescription(overSeconds: number) {
    return i18next.t('timeTimer.endedOver', {
        time: getLocalizedDurationFormatter(overSeconds * 1000)
    });
}