mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
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:
parent
476eea44df
commit
f99f289f74
10 changed files with 17 additions and 31 deletions
|
|
@ -55,7 +55,7 @@
|
|||
const substitutions: Record<string, string> = {
|
||||
filename: 'IMAGE_56437',
|
||||
ext: 'jpg',
|
||||
filetype: $t('img').toUpperCase(),
|
||||
filetype: 'IMG',
|
||||
filetypefull: 'IMAGE',
|
||||
assetId: 'a8312960-e277-447d-b4ea-56717ccba856',
|
||||
album: $t('album_name'),
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -225,8 +225,8 @@
|
|||
curve
|
||||
shadow
|
||||
url={selectedPersonToCreate[face.id]}
|
||||
altText={'New person'}
|
||||
title={'New person'}
|
||||
altText={$t('new_person')}
|
||||
title={$t('new_person')}
|
||||
widthStyle={thumbnailWidth}
|
||||
heightStyle={thumbnailWidth}
|
||||
/>
|
||||
|
|
@ -309,7 +309,7 @@
|
|||
<CircleIconButton
|
||||
color="primary"
|
||||
icon={mdiMinus}
|
||||
title="Select new face"
|
||||
title={$t('select_new_face')}
|
||||
size="18"
|
||||
padding="1"
|
||||
class="absolute left-1/2 top-1/2 translate-x-[-50%] translate-y-[-50%] transform"
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@
|
|||
await signUpAdmin({ signUpDto: { email, password, name } });
|
||||
await goto(AppRoute.AUTH_LOGIN);
|
||||
} catch (error) {
|
||||
handleError(error, 'errors.errors.unable_to_create_admin_account');
|
||||
errorMessage = $t('errors.errors.unable_to_create_admin_account');
|
||||
handleError(error, 'errors.unable_to_create_admin_account');
|
||||
errorMessage = $t('errors.unable_to_create_admin_account');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
export let menuItem = false;
|
||||
export let unarchive = false;
|
||||
|
||||
$: text = unarchive ? $t('unarchive') : $t('archive');
|
||||
$: text = unarchive ? $t('unarchive') : $t('to_archive');
|
||||
$: icon = unarchive ? mdiArchiveArrowUpOutline : mdiArchiveArrowDownOutline;
|
||||
|
||||
let loading = false;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
export let menuItem = false;
|
||||
export let removeFavorite: boolean;
|
||||
|
||||
$: text = removeFavorite ? $t('remove_from_favorites') : $t('favorite');
|
||||
$: text = removeFavorite ? $t('remove_from_favorites') : $t('to_favorite');
|
||||
$: icon = removeFavorite ? mdiHeartMinusOutline : mdiHeartOutline;
|
||||
|
||||
let loading = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue