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

Plover-Y wrote: It seems great! I really appreciate your helping, thank you very much!

You're welcome. It is a shame that although this functionality is part of the Extension:CLDR that wikia uses, they are probably using an older version that doesn't support it.

According to https://www.mediawiki.org/wiki/Help:Magic_words#Miscellaneous, the second parameter of the parser function can accept the language name for translation.

Anyway, I suggest you recommend this feature using Special:Contact. I've already done so, but if more people suggest it, perhaps it'll improve the chances of them actually doing it.

This would make it as easy as writing :

Or if you still want to use lua: local p = {}

function p.LanguageName( frame ) local LanguageNameText = frame.args[1] return mw.language.fetchLanguageName( LanguageNameText ,"jp") ) end