FANDOM


local p = {}
 
local LanguageNameData = mw.loadData( 'Module:LanguageName/ja/data' )
 
function p.LanguageName( frame )
	local LanguageNameText = frame.args[1]
 
	if LanguageNameData[LanguageNameText] ~= nil then
		LanguageNameText = LanguageNameData[LanguageNameText]
        else
                LanguageNameText = LanguageNameData["#default"] or ""
	end
 
	return LanguageNameText
end
 
return p