You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-06-17 03:47:45 +02:00
Fix plural
This commit is contained in:
@ -39,7 +39,7 @@ export function getBytesWithUnit(bytes: number, maxPrecision = 1): [number, stri
|
|||||||
* @returns localized bytes with unit as string
|
* @returns localized bytes with unit as string
|
||||||
*/
|
*/
|
||||||
export function asByteUnitString(bytes: number, maxPrecision = 1): string {
|
export function asByteUnitString(bytes: number, maxPrecision = 1): string {
|
||||||
const locale = Array.from(navigator.language);
|
const locale = Array.from(navigator.languages);
|
||||||
const [size, unit] = getBytesWithUnit(bytes, maxPrecision);
|
const [size, unit] = getBytesWithUnit(bytes, maxPrecision);
|
||||||
return `${size.toLocaleString(locale)} ${unit}`;
|
return `${size.toLocaleString(locale)} ${unit}`;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user