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;
@@ -43,7 +45,7 @@

Active

{#if jobCounts.active !== undefined} - {jobCounts.active} + {jobCounts.active.toLocaleString(locale)} {:else} {/if} @@ -55,7 +57,7 @@ >

{#if jobCounts.waiting !== undefined} - {jobCounts.waiting} + {jobCounts.waiting.toLocaleString(locale)} {:else} {/if} diff --git a/web/src/lib/components/album-page/album-viewer.svelte b/web/src/lib/components/album-page/album-viewer.svelte index 63e51b8d3..f177d4e09 100644 --- a/web/src/lib/components/album-page/album-viewer.svelte +++ b/web/src/lib/components/album-page/album-viewer.svelte @@ -383,7 +383,7 @@ >

- Selected {multiSelectAsset.size} + Selected {multiSelectAsset.size.toLocaleString(locale)}

diff --git a/web/src/lib/components/album-page/asset-selection.svelte b/web/src/lib/components/album-page/asset-selection.svelte index bba448fe2..401d581c2 100644 --- a/web/src/lib/components/album-page/asset-selection.svelte +++ b/web/src/lib/components/album-page/asset-selection.svelte @@ -28,6 +28,8 @@ assetInteractionStore.clearMultiselect(); }; + + const locale = navigator.language;
Add to album

{:else} -

{$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;
@@ -90,7 +92,7 @@ >

- Selected {selectedAssets.size} + Selected {selectedAssets.size.toLocaleString(locale)}

diff --git a/web/src/lib/components/shared-components/side-bar/side-bar.svelte b/web/src/lib/components/shared-components/side-bar/side-bar.svelte index a7e63f96e..dd133b5ad 100644 --- a/web/src/lib/components/shared-components/side-bar/side-bar.svelte +++ b/web/src/lib/components/shared-components/side-bar/side-bar.svelte @@ -42,6 +42,8 @@ owned: albumCount.owned }; }; + + const locale = navigator.language;
@@ -104,7 +106,7 @@ {:then data}
-

{data.shared + data.sharing} Albums

+

{(data.shared + data.sharing).toLocaleString(locale)} Albums

{/await} @@ -174,7 +176,7 @@ {:then data}
-

{data.owned} Albums

+

{data.owned.toLocaleString(locale)} Albums

{/await} diff --git a/web/src/lib/components/shared-components/upload-panel.svelte b/web/src/lib/components/shared-components/upload-panel.svelte index 4596ed286..7e24627d8 100644 --- a/web/src/lib/components/shared-components/upload-panel.svelte +++ b/web/src/lib/components/shared-components/upload-panel.svelte @@ -6,7 +6,7 @@ import WindowMinimize from 'svelte-material-icons/WindowMinimize.svelte'; import type { UploadAsset } from '$lib/models/upload-asset'; import { notificationController, NotificationType } from './notification/notification'; - import { getBytesWithUnit } from '../../utils/byte-units'; + import { asByteUnitString } from '$lib/utils/byte-units'; let showDetail = true; @@ -116,7 +116,7 @@
diff --git a/web/src/routes/photos/+page.svelte b/web/src/routes/photos/+page.svelte index 306f21f46..6b261ffb7 100644 --- a/web/src/routes/photos/+page.svelte +++ b/web/src/routes/photos/+page.svelte @@ -145,6 +145,8 @@ assetInteractionStore.clearMultiselect(); isShowCreateSharedLinkModal = false; }; + + const locale = navigator.language;
@@ -156,7 +158,7 @@ >

- Selected {$selectedAssets.size} + Selected {$selectedAssets.size.toLocaleString(locale)}