feat(web): More localisation (#1441)

* File size localisation

* Localisation for sidebar tooltips

* Localisation for active/waiting jobs

* Localisation for selected item counts

* Prettier

* Ignore Jest coverage directory for Prettier
This commit is contained in:
Kiel Hurley
2023-01-28 18:57:25 +13:00
committed by GitHub
parent 12ecf366b0
commit 5aee5c0fb8
8 changed files with 25 additions and 12 deletions

View File

@@ -28,6 +28,8 @@
assetInteractionStore.clearMultiselect();
};
const locale = navigator.language;
</script>
<section
@@ -44,7 +46,9 @@
{#if $selectedAssets.size == 0}
<p class="text-lg dark:text-immich-dark-fg">Add to album</p>
{:else}
<p class="text-lg dark:text-immich-dark-fg">{$selectedAssets.size} selected</p>
<p class="text-lg dark:text-immich-dark-fg">
{$selectedAssets.size.toLocaleString(locale)} selected
</p>
{/if}
</svelte:fragment>