Board Thread:Lua Help/@comment-24520859-20151223111253/@comment-24473195-20151223194353

I've added that functionality to the example on. Simply replace your with the following. local p = {} local LanguageNameData = mw.loadData( 'Module:LanguageName/ja/data' ) function p.fooBar( frame ) local fooBarText = frame.args[1] if fooBarData[fooBarText] ~= nil then fooBarText = fooBarData[fooBarText] end return fooBarText end return p