chore(web): more translations for user settings and admin pages (#10161)

* chore(web): more translations for user settings and admin pages

* JobSettings translations

* feedback

* missed one

* feedback
This commit is contained in:
Michel Heusschen
2024-06-12 12:54:40 +02:00
committed by GitHub
parent 0e1311e3d3
commit 9e5c52b7b7
34 changed files with 300 additions and 160 deletions
@@ -8,6 +8,7 @@
import { getAllJobsStatus, type AllJobStatusResponseDto } from '@immich/sdk';
import { mdiCog } from '@mdi/js';
import { onDestroy, onMount } from 'svelte';
import { t } from 'svelte-i18n';
import type { PageData } from './$types';
export let data: PageData;
@@ -34,7 +35,7 @@
<LinkButton>
<div class="flex place-items-center gap-2 text-sm">
<Icon path={mdiCog} size="18" />
Manage Concurrency
{$t('admin.manage_concurrency')}
</div>
</LinkButton>
</a>
+4 -1
View File
@@ -1,16 +1,19 @@
import { authenticate } from '$lib/utils/auth';
import { getAllJobsStatus } from '@immich/sdk';
import { t } from 'svelte-i18n';
import { get } from 'svelte/store';
import type { PageLoad } from './$types';
export const load = (async () => {
await authenticate({ admin: true });
const jobs = await getAllJobsStatus();
const $t = get(t);
return {
jobs,
meta: {
title: 'Job Status',
title: $t('admin.job_status'),
},
};
}) satisfies PageLoad;