fix: fix missing i18n keys (#21932)

This commit is contained in:
Shirasawa
2026-02-28 13:56:12 -05:00
committed by GitHub
parent 18401de254
commit 144c0f3d76
2 changed files with 14 additions and 14 deletions
@@ -67,12 +67,12 @@
const weeks = Math.floor(days / 7);
const years = Math.floor(days / 365);
if (years > 0) return `${years}y`;
if (weeks > 0) return `${weeks}w`;
if (days > 0) return `${days}d`;
if (hours > 0) return `${hours}h`;
if (minutes > 0) return `${minutes}m`;
return '1m';
if (years > 0) return $i18n.t('{{count}}y', { count: years, context: 'time_ago' });
if (weeks > 0) return $i18n.t('{{count}}w', { count: weeks, context: 'time_ago' });
if (days > 0) return $i18n.t('{{count}}d', { count: days, context: 'time_ago' });
if (hours > 0) return $i18n.t('{{count}}h', { count: hours, context: 'time_ago' });
if (minutes > 0) return $i18n.t('{{count}}m', { count: minutes, context: 'time_ago' });
return $i18n.t('1m', { context: 'time_ago' });
}
let chat = null;