You're slightly confusing dialects with countries (there can be ones not tied to a single country), but more importantly, this places no hard limit on design, you can have icon variations for dialects as well.
(and yes, language switching menus you can't understand are dumb, especially for more complicated cases where names don't even look similar, but unfortunately common)