mirror of
https://github.com/immich-app/immich.git
synced 2025-11-28 01:39:55 +09:00
feat(web): more localized number formatting (#11401)
This commit is contained in:
@@ -108,7 +108,10 @@
|
||||
{/if}
|
||||
<span class="text-immich-primary dark:text-immich-dark-primary">
|
||||
{#if user.quotaSizeInBytes}
|
||||
({((user.usage / user.quotaSizeInBytes) * 100).toFixed(0)}%)
|
||||
({(user.usage / user.quotaSizeInBytes).toLocaleString($locale, {
|
||||
style: 'percent',
|
||||
maximumFractionDigits: 0,
|
||||
})})
|
||||
{:else}
|
||||
({$t('unlimited')})
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user