Module:LanguageName

local p = {}

local xx = frame.args[1] local LanguageNameData = mw.loadData( 'Module:LanguageName/'..xx..'/data' ) function p.LanguageName( frame ) local LanguageNameText = frame.args[1] if LanguageNameData[LanguageNameText] ~= nil then LanguageNameText = LanguageNameData[LanguageNameText] end return LanguageNameText end return p