Module:GetLang
Documentation for this module may be created at Module:GetLang/doc
local GetLang = {}
local Language = require( "Module:Language" )
function GetLang.lang (frame)
-- local name = Language:getName(mw.text.trim(frame.args[1]))
local parentFrame = frame:getParent()
local templateArgs = parentFrame.args
local langTag = mw.text.trim( templateArgs[1] or "" )
local langName = Language:getName( langTag )
return langName
end
return GetLang