mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
feat(web): Localize dates and numbers (#1056)
This commit is contained in:
parent
426ce77f1c
commit
5f2b75997f
11 changed files with 86 additions and 48 deletions
|
|
@ -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
|
||||
}`}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue