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
@@ -48,7 +48,7 @@
allUsers = allUsers.filter((user) => user.id !== userId);
notificationController.show({
type: NotificationType.Info,
message: `User ${user.email} has been successfully removed.`,
message: $t('admin.user_successfully_removed', { values: { email: user.email } }),
});
}
};
@@ -164,7 +164,7 @@
>
<svelte:fragment slot="prompt">
<div class="flex flex-col gap-4">
<p>The user's password has been reset:</p>
<p>{$t('admin.user_password_has_been_reset')}</p>
<div class="flex justify-center gap-2">
<code
@@ -179,10 +179,7 @@
</LinkButton>
</div>
<p>
Please provide the temporary password to the user and inform them they will need to change the password
at their next login.
</p>
<p>{$t('admin.user_password_reset_description')}</p>
</div>
</svelte:fragment>
</ConfirmDialog>
@@ -1,16 +1,19 @@
import { authenticate, requestServerInfo } from '$lib/utils/auth';
import { searchUsersAdmin } 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 });
await requestServerInfo();
const allUsers = await searchUsersAdmin({ withDeleted: true });
const $t = get(t);
return {
allUsers,
meta: {
title: 'User Management',
title: $t('admin.user_management'),
},
};
}) satisfies PageLoad;