3 ms·
The locale might be set to something completely different. A lot of programmers run their machines in English and not in their native language. One could use lo
by andrewl-hn 5y ago
The locale might be set to something completely different. A lot of programmers run their machines in English and not in their native language. One could use location to detect which variant to use, but that too wouldn’t work for, say, Chinese speakers in Japan. In ideal world we should use the locale of an input source (if the user sets their keyboard to Traditional Chinese we should use it for that fragment of text). However, operating systems and browsers don’t provide the input source locale API.