Hacker News new | ask | show | jobs
by mattbk1 1849 days ago
Just remember that flags aren't languages.
2 comments

Flags are the most easily-understood way to communicate languages to users, and I say this as someone who is often obliged to pick the flag of a foreign country (often an empire that wilfully starved millions of my countrymen) to get websites in my native language. "Flags are not languages" is one of those pedantic corrections that ends up doing more harm than good.
The easiest way is to state the language name in that language:

English

עִברִית

العربية

हिंदी

ไทย

etc

How do I find the language selector if the page is in a language I don't know?
That's a great point.

In that case, I'd suggest the first two letters of the language, an "En" for English, an "Es" for Spanish, a "De" for German, etc.

https://en.m.wikipedia.org/wiki/List_of_ISO_639-1_codes Not first two letters, two letter ISO codes. There are also complications with dialects, so not quite this simple.