Notification type fallback

This commit is contained in:
Natsumi
2026-02-10 15:13:09 +13:00
parent 927e564a30
commit 2265def591
2 changed files with 8 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ import {
import Emoji from '../../components/Emoji.vue';
const { t } = i18n.global;
const { t, te } = i18n.global;
const isGroupId = (id) => typeof id === 'string' && id.startsWith('grp_');
@@ -145,7 +145,8 @@ export const createColumns = ({
header: () => t('table.notification.type'),
cell: ({ row }) => {
const original = row.original;
const label = t(`view.notification.filters.${original.type}`);
const typeKey = `view.notification.filters.${original.type}`;
const label = te(typeKey) ? t(typeKey) : original.type;
if (original.type === 'invite') {
return (