fix: fix missing i18n keys (#21932)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user