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
+4 -1
View File
@@ -1,15 +1,18 @@
import { authenticate } from '$lib/utils/auth';
import { getServerStatistics } 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 stats = await getServerStatistics();
const $t = get(t);
return {
stats,
meta: {
title: 'Server Stats',
title: $t('server_stats'),
},
};
}) satisfies PageLoad;