Page MenuHomePhabricator

Provide mw.wikibase.getLang
Closed, DuplicatePublic

Description

On https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua all sorts of nice functions are offered, but a simple function to get the user language seems to be missing. Should be quite straightforward to implement mw.wikibase.getLang . Currently things like "args.lang = frame:callParserFunction( "int", "lang" ) -- get user's chosen language" are being used to achieve this result.