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

@@ -22,6 +22,8 @@
const run = (includeAllAssets: boolean) => {
dispatch('click', { includeAllAssets });
};
const locale = navigator.language;
</script>
<div class="flex justify-between rounded-3xl bg-gray-100 dark:bg-immich-dark-gray">
@@ -43,7 +45,7 @@
<p>Active</p>
<p class="text-2xl">
{#if jobCounts.active !== undefined}
{jobCounts.active}
{jobCounts.active.toLocaleString(locale)}
{:else}
<LoadingSpinner />
{/if}
@@ -55,7 +57,7 @@
>
<p class="text-2xl">
{#if jobCounts.waiting !== undefined}
{jobCounts.waiting}
{jobCounts.waiting.toLocaleString(locale)}
{:else}
<LoadingSpinner />
{/if}