fix(web): small translation issues + remove unused (#10200)

* fix(web): small translation issues + remove unused

* more unused keys

* formatting

* fix(web): incorrectly used translations

* fix and remove unused translations

---------

Co-authored-by: Zack Pollard <zackpollard@ymail.com>
This commit is contained in:
Michel Heusschen 2024-06-12 13:13:10 +02:00 committed by GitHub
parent 476eea44df
commit f99f289f74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 17 additions and 31 deletions

View file

@ -177,7 +177,7 @@
color="opaque"
icon={asset.isFavorite ? mdiHeart : mdiHeartOutline}
on:click={() => dispatch('favorite')}
title={asset.isFavorite ? $t('unfavorite') : $t('favorite')}
title={asset.isFavorite ? $t('unfavorite') : $t('to_favorite')}
/>
{/if}
@ -242,7 +242,7 @@
<MenuOption
on:click={() => onMenuClick('toggleArchive')}
icon={asset.isArchived ? mdiArchiveArrowUpOutline : mdiArchiveArrowDownOutline}
text={asset.isArchived ? $t('unarchive') : $t('archive')}
text={asset.isArchived ? $t('unarchive') : $t('to_archive')}
/>
<MenuOption
icon={mdiUpload}

View file

@ -97,7 +97,7 @@
};
const onCopyShortcut = (event: KeyboardEvent) => {
if (window.getSelection()?.type === $t('range')) {
if (window.getSelection()?.type === 'Range') {
return;
}
event.preventDefault();
@ -112,7 +112,7 @@
]}
/>
{#if imageError}
<div class="h-full flex items-center justify-center">Error loading image</div>
<div class="h-full flex items-center justify-center">{$t('error_loading_image')}</div>
{/if}
<div bind:this={element} class="relative h-full select-none">
<img