chore: i18n pass

This commit is contained in:
izzy
2025-12-18 16:27:26 +00:00
parent 748ba6780d
commit 8b1e29998e
5 changed files with 20 additions and 12 deletions
@@ -125,19 +125,20 @@
size="tiny"
variant="ghost"
class="self-end mt-1"
disabled={jobs?.backgroundTask.queueStatus.isActive}>Check All</Button
disabled={jobs?.backgroundTask.queueStatus.isActive}
>{$t('admin.maintenance_integrity_check_all')}</Button
>
<Button
onclick={() => runJob(reportType, true)}
size="tiny"
variant="ghost"
class="self-end mt-1"
disabled={jobs?.backgroundTask.queueStatus.isActive}>Refresh</Button
disabled={jobs?.backgroundTask.queueStatus.isActive}>{$t('refresh')}</Button
>
<Button
href={`${AppRoute.ADMIN_MAINTENANCE_INTEGRITY_REPORT + reportType}`}
size="tiny"
class="self-end mt-1">View</Button
class="self-end mt-1">{$t('view')}</Button
>
</HStack>
{/snippet}
@@ -79,7 +79,7 @@
await createJob({ jobCreateDto: { name } });
toastManager.success($t('admin.job_created'));
} catch (error) {
handleError(error, 'Failed to delete file!');
handleError(error, $t('failed_to_delete_file'));
}
}
}
@@ -97,7 +97,7 @@
});
integrityReport.items = integrityReport.items.filter((report) => report.id !== id);
} catch (error) {
handleError(error, 'Failed to delete file!');
handleError(error, $t('failed_to_delete_file'));
} finally {
deleting.delete(id);
}
@@ -147,14 +147,14 @@
]}
actions={[
{
title: 'Download CSV',
title: $t('admin.download_csv'),
icon: mdiDownload,
onAction: () => {
location.href = `${getBaseUrl()}/admin/maintenance/integrity/report/${data.type}/csv`;
},
},
{
title: 'Delete All',
title: $t('trash_page_delete_all'),
onAction: removeAll,
icon: mdiTrashCanOutline,
},
@@ -198,21 +198,21 @@
disabled={page === 1}
color="primary"
icon={mdiPageFirst}
aria-label="first page"
aria-label={$t('first_page')}
onclick={() => loadPage(1)}
/>
<IconButton
disabled={page === 1}
color="primary"
icon={mdiChevronLeft}
aria-label="previous page"
aria-label={$t('previous_page')}
onclick={() => loadPage(page - 1)}
/>
<IconButton
disabled={!integrityReport.hasNextPage}
color="primary"
icon={mdiChevronRight}
aria-label="next page"
aria-label={$t('next_page')}
onclick={() => loadPage(page + 1)}
/>
</HStack>