From e1f217ad80c35cf21db1fc21e310a55377402249 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 27 Nov 2022 14:34:49 -0800 Subject: [PATCH] fix all the byte units display labels to binary see https://en.wikipedia.org/wiki/Kilobyte --- next-i18next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next-i18next.config.js b/next-i18next.config.js index da83ed70e..ee6eaaa1d 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -103,7 +103,7 @@ module.exports = { const bits = options.bits ? value : value / 8; const k = 1024; const dm = options.decimals ? options.decimals : 0; - const sizes = ["Bps", "Kbps", "MiBps", "Gbps", "Tbps", "Pbps", "Ebps", "Zbps", "Ybps"]; + const sizes = ["Bps", "KiBps", "MiBps", "GiBps", "TiBps", "PiBps", "EiBps", "ZiBps", "YiBps"]; const i = Math.floor(Math.log(bits) / Math.log(k));