Adding Locale flags to locale switcher?

They seem to work here, how did you hook them up?