Am 08.01.2024 um 07:54 schrieb Strainu:
I'm trying to add a "translate" link to [[:ro:Template:Ill-wd]] (which
indicates a subject by it's wikidata id) and I need to determine the original
language. Is there a way to determine if the current user prefers/knows some
languages except the wiki's o
Hi!
I'm not sure if the approach would be valid for yout scenario, but in case you
consider implementing it in JavaScript (as a gadget), you may want to use
mw.uls.getFrequentLanguageList() (as used here:
https://pl.wikipedia.org/wiki/MediaWiki:Gadget-interwiki-langlist.js#L-808 -
it's a gadge