Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(web): more translations #11167

Merged
merged 4 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions web/src/lib/components/album-page/albums-table-row.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
{/if}
</td>
<td class="text-md text-ellipsis text-center sm:w-2/12 md:w-2/12 xl:w-[15%] 2xl:w-[12%]">
{album.assetCount}
{album.assetCount > 1 ? `items` : `item`}
{$t('items_count', { values: { count: album.assetCount } })}
</td>
<td class="text-md hidden text-ellipsis text-center sm:block w-3/12 xl:w-[15%] 2xl:w-[12%]">
{dateLocaleString(album.updatedAt)}
Expand Down
3 changes: 2 additions & 1 deletion web/src/lib/components/photos-page/memory-lane.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import { mdiChevronLeft, mdiChevronRight } from '@mdi/js';
import { onMount } from 'svelte';
import { fade } from 'svelte/transition';
import { t } from 'svelte-i18n';

$: shouldRender = $memoryStore?.length > 0;

Expand Down Expand Up @@ -76,7 +77,7 @@
<img
class="h-full w-full rounded-xl object-cover"
src={getAssetThumbnailUrl(memory.assets[0].id)}
alt={`Memory Lane ${$getAltText(memory.assets[0])}`}
alt={$t('memory_lane_title', { values: { title: $getAltText(memory.assets[0]) } })}
draggable="false"
/>
<p class="absolute bottom-2 left-4 z-10 text-lg text-white">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@
bind:value={context}
/>
{:else}
<label for="file-name-input" class="immich-form-label">Search by file name or extension</label>
<label for="file-name-input" class="immich-form-label">{$t('search_by_filename')}</label>
<input
class="immich-form-input hover:cursor-text w-full !mt-1"
type="text"
id="file-name-input"
name="file-name"
placeholder="i.e. IMG_1234.JPG or PNG"
placeholder={$t('search_by_filename_example')}
bind:value={filename}
aria-labelledby="file-name-label"
/>
Expand Down
3 changes: 3 additions & 0 deletions web/src/lib/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@
"memories": "Memories",
"memories_setting_description": "Manage what you see in your memories",
"memory": "Memory",
"memory_lane_title": "Memory Lane {title}",
"menu": "Menu",
"merge": "Merge",
"merge_people": "Merge people",
Expand Down Expand Up @@ -973,6 +974,8 @@
"search": "Search",
"search_albums": "Search albums",
"search_by_context": "Search by context",
"search_by_filename": "Search by file name or extension",
"search_by_filename_example": "i.e. IMG_1234.JPG or PNG",
"search_camera_make": "Search camera make...",
"search_camera_model": "Search camera model...",
"search_city": "Search city...",
Expand Down
Loading