diff --git a/web/.prettierignore b/web/.prettierignore index a2f960d9e..12583c47d 100644 --- a/web/.prettierignore +++ b/web/.prettierignore @@ -3,6 +3,7 @@ node_modules /build /.svelte-kit /package +/coverage .env .env.* !.env.example diff --git a/web/src/lib/components/admin-page/jobs/job-tile.svelte b/web/src/lib/components/admin-page/jobs/job-tile.svelte index 9ea6839d1..9c92c8491 100644 --- a/web/src/lib/components/admin-page/jobs/job-tile.svelte +++ b/web/src/lib/components/admin-page/jobs/job-tile.svelte @@ -22,6 +22,8 @@ const run = (includeAllAssets: boolean) => { dispatch('click', { includeAllAssets }); }; + + const locale = navigator.language;
Active
{#if jobCounts.active !== undefined}
- {jobCounts.active}
+ {jobCounts.active.toLocaleString(locale)}
{:else}
{#if jobCounts.waiting !== undefined}
- {jobCounts.waiting}
+ {jobCounts.waiting.toLocaleString(locale)}
{:else}
- Selected {multiSelectAsset.size}
+ Selected {multiSelectAsset.size.toLocaleString(locale)}
{$selectedAssets.size} selected
++ {$selectedAssets.size.toLocaleString(locale)} selected +
{/if} diff --git a/web/src/lib/components/share-page/individual-shared-viewer.svelte b/web/src/lib/components/share-page/individual-shared-viewer.svelte index 6dd723e08..4b5dcc1cd 100644 --- a/web/src/lib/components/share-page/individual-shared-viewer.svelte +++ b/web/src/lib/components/share-page/individual-shared-viewer.svelte @@ -79,6 +79,8 @@ clearMultiSelectAssetAssetHandler(); } }; + + const locale = navigator.language;- Selected {selectedAssets.size} + Selected {selectedAssets.size.toLocaleString(locale)}
{data.shared + data.sharing} Albums
+{(data.shared + data.sharing).toLocaleString(locale)} Albums
{data.owned} Albums
+{data.owned.toLocaleString(locale)} Albums
- Selected {$selectedAssets.size} + Selected {$selectedAssets.size.toLocaleString(locale)}