feat(web): add more translations (#10700)

* feat(web): add more translations

* formatting
This commit is contained in:
Michel Heusschen
2024-07-01 00:29:10 +02:00
committed by GitHub
parent e54c18367b
commit c58148af35
20 changed files with 90 additions and 53 deletions
@@ -26,9 +26,11 @@
passwordRequired = false;
isOwned = $user ? $user.id === sharedLink.userId : false;
title = (sharedLink.album ? sharedLink.album.albumName : $t('public_share')) + ' - Immich';
description = sharedLink.description || `${sharedLink.assets.length} shared photos & videos.`;
description =
sharedLink.description ||
$t('shared_photos_and_videos_count', { values: { assetCount: sharedLink.assets.length } });
} catch (error) {
handleError(error, 'Failed to get shared link');
handleError(error, $t('errors.unable_to_get_shared_link'));
}
};
</script>
@@ -57,7 +59,7 @@
<div class="flex flex-col items-center justify-center mt-20">
<div class="text-2xl font-bold text-immich-primary dark:text-immich-dark-primary">{$t('password_required')}</div>
<div class="mt-4 text-lg text-immich-primary dark:text-immich-dark-primary">
Please enter the password to view this page.
{$t('sharing_enter_password')}
</div>
<div class="mt-4">
<form novalidate autocomplete="off" on:submit|preventDefault={handlePasswordSubmit}>