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.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 18 2017, 12:16 PM
Anomie added a subscriber: Anomie.Feb 18 2017, 1:07 PM

Why would fetching the user language be in wikibase instead of Scribunto itself?