         
         let itemSelectionHandler =
         "function(payload){" +
-            "window.webkit.messageHandlers.footerMenuItemClicked.postMessage({'selection': '\(footerMenuJSTransformEnumString)', 'payload': payload});" +
+            "window.webkit.messageHandlers.footerMenuItemClicked.postMessage({'selection': '\(menuItemTypeString)', 'payload': payload});" +
         "}"
         
-        return "window.wmf.footerMenu.maybeAddItem('\(title)', '\(subtitle)', \(self.footerMenuTransformJSEnumPath), 'footer_container_menu_items', \(itemSelectionHandler));"
+        return "window.wmf.footerMenu.maybeAddItem('\(title)', '\(subtitle)', \(self.menuItemTypeJSPath), 'footer_container_menu_items', \(itemSelectionHandler));"
     }
 }
 

    case languages, lastEdited, pageIssues, disambiguation, coordinate
    
    // Reminder: These are the strings used by the footerMenu JS transform:
    private var footerMenuJSTransformEnumString: String {
        switch self {
        case .languages: return "languages"
        case .lastEdited: return "lastEdited"

        }
    }
    
    private var menuItemTypeJSPath: String {
        return "window.wmf.footerMenu.MenuItemType.\(menuItemTypeString)"
    }
    
    private func localizedTitle(with article: MWKArticle) -> String {
