Open up a Terminal window. (If you have never seen Terminal before, go to Spotlight Search and type "Terminal.")
In the Terminal box, try this:
defaults read com.google.Chrome AppleLanguages
If you see this:
export function convertBytes(bytes: number, options: { useBinaryUnits?: boolean; decimals?: number } = {}): string { | |
const { useBinaryUnits = false, decimals = 2 } = options; | |
if (decimals < 0) { | |
throw new Error(`Invalid decimals ${decimals}`); | |
} | |
const base = useBinaryUnits ? 1024 : 1000; | |
const units = useBinaryUnits | |
? ["Bytes", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] |
// The code is based on https://gist.github.com/kottenator/9d936eb3e4e3c3e02598#gistcomment-3238804 | |
type PageItem = number | "..."; | |
export const getRange = (start: number, end: number): PageItem[] => { | |
if (end < start) throw Error(`End number must be higher then start number: start ${start}, end ${start}`); | |
const rangeLength = end - start + 1; | |
return Array(rangeLength) | |
.fill(0) |