forked from akai/readest
9b53ccc9de
When LANG=C.UTF-8, navigator.language can return 'C' which is not a valid BCP 47 tag, causing Intl.NumberFormat and toLocaleString to throw. Normalize POSIX values (C, C.UTF-8, POSIX) to 'en-US' at the source. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>