0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-03-11 02:23:09 -05:00

feat(web): display age with months if age is less than 2 (#9053)

This commit is contained in:
Julian Wachholz 2024-04-24 17:09:59 +02:00 committed by GitHub
parent 56ce58c718
commit 2593110219
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -292,6 +292,8 @@
>
{#if ageInMonths <= 11}
Age {ageInMonths} months
{:else if ageInMonths > 12 && ageInMonths <= 23}
Age 1 year, {ageInMonths - 12} months
{:else}
Age {age}
{/if}