import { placeholder, htmlUserLanguageAttributes, makeIcon, portletAfter } from './utils'; /** * @type {MenuDefinition} */ export const languageData = { id: 'p-lang-btn', 'is-dropdown': true, // both classes needed for this to render correctly class: 'mw-portlet-lang vector-menu-dropdown', // mw-interlanguage-selector must be present to operate in ULS mode. // icon classes and button classes 'checkbox-class': 'mw-interlanguage-selector', 'html-vector-heading-icon': makeIcon( 'wikimedia-language' ), 'heading-class': 'mw-ui-button mw-ui-quiet', 'html-tooltip': 'A message tooltip-p-lang must exist for this to appear', label: '10 languages', 'html-user-language-attributes': htmlUserLanguageAttributes, 'html-items': `
Further hook output possible (lang)
`, 60 )}` ) };