Browse Source

Fix plural

Alex 2 năm trước cách đây
mục cha
commit
6e2763b72c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      web/src/lib/utils/byte-units.ts

+ 1 - 1
web/src/lib/utils/byte-units.ts

@@ -39,7 +39,7 @@ export function getBytesWithUnit(bytes: number, maxPrecision = 1): [number, stri
  * @returns localized bytes with unit as 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);
 	return `${size.toLocaleString(locale)} ${unit}`;
 }