Hi,
I’ve stumbled upon `mw.uls.getFrequentLanguageList()`, however I’m unable to find its documentation at the moment. The function returns an array of language codes for suggested languages (independent of the current article, i.e. you’ll get the same list regardless of any interwiki present on a current page).
I’ve used it here, if you’d like to see it in action: https://pl.wikipedia.org/wiki/MediaWiki:Gadget-interwiki-langlist.js#L-772
Cheers,
Marcin Szwarc
Od: Igal Khitron
Wys³ano: wtorek, 13 grudnia 2022 18:41
Do: Wikimedia developers
Temat: [Wikitech-l] Babel
Hi. Is there a way for javascript to retrieve the current personal list of recommended languages that appears at the top of the language selector when navigating with interwiki?
Thank you,
Igal (User:IKhitron)