         for language in languageBarLanguages() {
             let button = SearchLanguageButton()
 
+            button.languageCode = language.languageCode
             button.contentLanguageCode = language.contentLanguageCode
             button.isSelected = language.contentLanguageCode == currentlySelectedLanguage.contentLanguageCode
             button.addTarget(self, action: #selector(setCurrentlySelectedLanguageToButtonLanguage(withSender:)), for: .primaryActionTriggered)

}

class SearchLanguageButton: UnderlineButton {
    var contentLanguageCode: String?

    override func setup() {
        super.setup()
        titleLabel?.numberOfLines = 1
        titleEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 5, right: 0)
    }
}

class SearchLanguagesBarViewController: UIViewController, WMFPreferredLanguagesViewControllerDelegate, WMFLanguagesViewControllerDelegate, Themeable {

        let bgColor = theme.colors.paperBackground
        view.backgroundColor = bgColor
        for languageButton in searchLanguageButtons() {
            languageButton.apply(theme: theme)
        }
        gradientView.setStart(bgColor.withAlphaComponent(0), end: bgColor)
        otherLanguagesButtonBackgroundView?.backgroundColor = bgColor
