I’m currently working in a project with a lot of languages, one of them is Arabic, but predefined languages only have Arabic for every country, but not as a global language, as we have for EU English for example.
I don’t really know if there any flag for this, I don’t think so, but the problem is “ar” language ISO code is showing the Argentinian flag, which should be only “es-AR” code.
Of course I don’t care about this for the website, but it could be confusing for my client to see that in the dashboard language switcher. Maybe to show a default icon would be great.
In addition, I’m not a friend of using flags for languages, since they are exact in most of cases. In Europe there are many regions where people speak the official language of the closer country, and not it’s main official language. And of course, what happens if I want to set just English, Portuguese or Spanish, and I don’t care about any country since it’s enough to have the same content for all their speakers. My suggestion would be to add more non-country languages by default, and completely remove flags in this switcher.
Thanks for raising this I've seen this before with a flag conflict between El Salvador and Sweden. I agree this isn't the best way to go about this - the flags help as a shorthand (technically), but may not be the best way to convey this information especially in blind spots like these.
The different options of regions are useful for people who have markets across the same language with different versions and need to localise their contents across similar locales, such as English - Canada and English - UK (and English - US, where spelling differs, etc), so it makes sense for them to have those different countries.
I will raise your point about flag in a feature request with the Product team, as this would be part of a wider conversation, but I think I can solve your Arabic/Argentinian issue sooner to at least reduce confusion! I'll let you know when this is done.