chore(web): translations in page load functions (#10260)
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
import { authenticate } from '$lib/utils/auth';
|
||||
import { getAssetsByCity } from '@immich/sdk';
|
||||
import { t } from 'svelte-i18n';
|
||||
import { get } from 'svelte/store';
|
||||
import type { PageLoad } from './$types';
|
||||
|
||||
export const load = (async () => {
|
||||
await authenticate();
|
||||
const items = await getAssetsByCity();
|
||||
const $t = get(t);
|
||||
|
||||
return {
|
||||
items,
|
||||
meta: {
|
||||
title: 'Places',
|
||||
title: $t('places'),
|
||||
},
|
||||
};
|
||||
}) satisfies PageLoad;
|
||||
|
||||
Reference in New Issue
Block a user