mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 17:25:35 +03:00
fix(web): Make date-time formatting follow locale (#17899)
* fixed missing $locale parameter to .toLocaleString * Remove unused types and functions in timeline-util * remove unused export * re-enable export because it is needed for tests * format
This commit is contained in:
committed by
GitHub
parent
205260d31c
commit
85ac0512a6
@@ -34,6 +34,7 @@ export function getBytesWithUnit(bytes: number, maxPrecision = 1): [number, Byte
|
||||
* * de: `1,5 KiB`
|
||||
*
|
||||
* @param bytes number of bytes
|
||||
* @param locale locale to use, default is `navigator.language`
|
||||
* @param maxPrecision maximum number of decimal places, default is `1`
|
||||
* @returns localized bytes with unit as string
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user