local p= {}

function p.parse (frame)
  P1 = frame.args.P1 or ""
  local lang = mw.language.fetchLanguageName( P1, mw.getContentLanguage():getCode() ) 
  if ( lang == "" )
    then return P1
    else return lang
  end
end

return p