added translation for first and last date

This commit is contained in:
svsantos42 2026-05-01 11:39:51 -04:00
parent 7809277366
commit 0b233ff7ca
2 changed files with 4 additions and 2 deletions

View file

@ -1135,6 +1135,7 @@
"filter_tags": "Filter tags",
"filters": "Filters",
"first": "First",
"first_date": "First: {date}",
"fix_incorrect_match": "Fix incorrect match",
"focal_length": "Focal Length",
"folder": "Folder",
@ -1252,6 +1253,7 @@
"language_setting_description": "Select your preferred language",
"large_files": "Large Files",
"last": "Last",
"last_date": "Last: {date}",
"last_months": "{count, plural, one {Last month} other {Last # months}}",
"last_seen": "Last seen",
"latest_version": "Latest Version",

View file

@ -120,8 +120,8 @@
{#if showRelative}
<Label for="datetime" class="block mt-2 mb-1">{$t('new_date_range')}</Label>
{#if assets.length > 1}
<Text size="small">{$t('first')}: {dateRange.first}</Text>
<Text size="small">{$t('last')}: {dateRange.last}</Text>
<Text size="small">{$t('first_date', { values: { date: dateRange.first } })}</Text>
<Text size="small">{$t('last_date', { values: { date: dateRange.last } })}</Text>
{:else}
<Text size="small">{dateRange.first}</Text>
{/if}