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<mailto:[email protected]>
Wysłano: wtorek, 13 grudnia 2022 18:41
Do: Wikimedia developers<mailto:[email protected]>
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)


_______________________________________________
Wikitech-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

Reply via email to