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
@@ -181,7 +181,7 @@
<div class="flex flex-row items-center gap-2 bg-gray-100 p-3 dark:bg-gray-800">
<Icon path={mdiAlert} class="text-yellow-400" size={18} />
<h2 class="text-md text-immich-primary dark:text-immich-dark-primary">
Config is currently set by a config file
{$t('admin.config_set_by_file')}
</h2>
</div>
{/if}
@@ -191,19 +191,19 @@
<LinkButton on:click={() => copyToClipboard(JSON.stringify(config, null, 2))}>
<div class="flex place-items-center gap-2 text-sm">
<Icon path={mdiContentCopy} size="18" />
Copy to Clipboard
{$t('copy_to_clipboard')}
</div>
</LinkButton>
<LinkButton on:click={() => downloadConfig()}>
<div class="flex place-items-center gap-2 text-sm">
<Icon path={mdiDownload} size="18" />
Export as JSON
{$t('export_as_json')}
</div>
</LinkButton>
<LinkButton on:click={() => inputElement?.click()}>
<div class="flex place-items-center gap-2 text-sm">
<Icon path={mdiUpload} size="18" />
Import from JSON
{$t('import_from_json')}
</div>
</LinkButton>
</div>
@@ -1,15 +1,18 @@
import { authenticate } from '$lib/utils/auth';
import { getConfig } 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 configs = await getConfig();
const $t = get(t);
return {
configs,
meta: {
title: 'System Settings',
title: $t('admin.system_settings'),
},
};
}) satisfies PageLoad;