chore(web): missing notification settings translations (#10022)

* chore: missing notification settings translations

* chore: admin library tasks description translation
This commit is contained in:
Zack Pollard 2024-06-07 16:01:41 +01:00 committed by GitHub
parent c8f2d994c6
commit 3e118793de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 9 deletions

View file

@ -71,7 +71,7 @@
[JobName.Library]: {
icon: mdiLibraryShelves,
title: getJobName(JobName.Library),
subtitle: $t('perform_library_tasks'),
subtitle: $t('admin.library_tasks_description'),
allText: $t('all').toUpperCase(),
missingText: $t('refresh').toUpperCase(),
},

View file

@ -10,6 +10,7 @@
import SettingSwitch from '$lib/components/shared-components/settings/setting-switch.svelte';
import { preferences } from '$lib/stores/user.store';
import Button from '../elements/buttons/button.svelte';
import { t } from 'svelte-i18n';
let emailNotificationsEnabled = $preferences?.emailNotifications?.enabled ?? true;
let albumInviteNotificationEnabled = $preferences?.emailNotifications?.albumInvite ?? true;
@ -44,23 +45,23 @@
<div class="ml-4 mt-4 flex flex-col gap-4">
<div class="ml-4">
<SettingSwitch
title="Enable"
subtitle="Toggle email notifications"
title={$t('enable')}
subtitle={$t('notification_toggle_setting_description')}
bind:checked={emailNotificationsEnabled}
/>
</div>
<div class="ml-4">
<SettingSwitch
title="Album Added"
subtitle="Receive an email notification when you are added to a shared album"
title={$t('album_added')}
subtitle={$t('album_added_notification_setting_description')}
bind:checked={albumInviteNotificationEnabled}
disabled={!emailNotificationsEnabled}
/>
</div>
<div class="ml-4">
<SettingSwitch
title="Album Updated"
subtitle="Receive an email notification when a shared album has new assets"
title={$t('album_updated')}
subtitle={$t('album_updated_setting_description')}
bind:checked={albumUpdateNotificationEnabled}
disabled={!emailNotificationsEnabled}
/>

View file

@ -47,7 +47,7 @@
<MemoriesSettings />
</SettingAccordion>
<SettingAccordion key="notifications" title="Notifications" subtitle="Manage notifications">
<SettingAccordion key="notifications" title={$t('notifications')} subtitle={$t('notifications_setting_description')}>
<NotificationsSettings />
</SettingAccordion>