1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-17 03:47:45 +02:00

feat(web): Localize dates and numbers (#1056)

This commit is contained in:
Kiel Hurley
2022-12-05 04:35:20 +13:00
committed by GitHub
parent 426ce77f1c
commit 5f2b75997f
11 changed files with 86 additions and 48 deletions

View File

@ -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 { getHumanReadableBytes } from '../../utils/byte-units';
import { getBytesWithUnit } from '../../utils/byte-units';
let showDetail = true;
@ -115,7 +115,7 @@
<input
disabled
class="bg-gray-100 border w-full p-1 rounded-md text-[10px] px-2"
value={`[${getHumanReadableBytes(uploadAsset.file.size)}] ${
value={`[${getBytesWithUnit(uploadAsset.file.size)}] ${
uploadAsset.file.name
}`}
/>