mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
chore: i18n pass
This commit is contained in:
@@ -245,7 +245,7 @@ export const asQueueItem = ($t: MessageFormatter, queue: { name: QueueName }): Q
|
||||
},
|
||||
[QueueName.IntegrityCheck]: {
|
||||
icon: '',
|
||||
title: 'TODO',
|
||||
title: $t('integrity_checks'),
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -163,7 +163,7 @@ export const getQueueName = derived(t, ($t) => {
|
||||
[QueueName.BackupDatabase]: $t('admin.backup_database'),
|
||||
[QueueName.Ocr]: $t('admin.machine_learning_ocr'),
|
||||
[QueueName.Workflow]: $t('workflow'),
|
||||
[QueueName.IntegrityCheck]: 'TODO',
|
||||
[QueueName.IntegrityCheck]: $t('integrity_checks'),
|
||||
};
|
||||
|
||||
return names[name];
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user