Thread:Help talk:Extension:Translate/Translation language

Is there a way (similar to ) of getting the language code of the current translation? This is needed to build something similar to [//translatewiki.net/wiki/Template:Msg-mw Template:Msg-mw] on e.g. Commons.