diff --git a/core/includes/language.inc b/core/includes/language.inc
index 685a4d4..1cfd35c 100644
--- a/core/includes/language.inc
+++ b/core/includes/language.inc
@@ -199,6 +199,10 @@ function language_negotiation_get_switch_links($type, $path) {
       $callback = $provider['callbacks']['switcher'];
       $result = $callback($type, $path);
 
+      foreach ($result as $langcode => $link) {
+        $result[$langcode]['attributes']['class'][] = $langcode;
+      }
+
       if (!empty($result)) {
         // Allow modules to provide translations for specific links.
         drupal_alter('language_switch_links', $result, $type, $path);
