4 import { _ } from 'svelte-i18n';
5 import { readableTime } from '$/utils/readable_time.js';
7 $: remainingTime = topic.updated_at + topic.ttl - Date.now();
8 $: remaining = readableTime(remainingTime);
11 <li class="h-entry" title={$_('topic.title')}>
13 ><a class="u-url u-uid" title={$_('topic.permalink_title')} href="/t/{topic.id}"
17 <span class="topic-ttl"
18 >({$_('topic.remaining_time', {
19 values: { remaining: $_(remaining.label, { values: { count: remaining.count } }) }