Difference between revisions 18626530 and 18626531 on frwiktionary

local languages = mw.loadData("Module:languages")
local export = {}

-- transliterate the text, if possible
function export.translit(lang, text)
    -- TODO: the table's information should be moved to [[Module:languages]]
    local translit_modules = {
        ["ae"] = "Module:Avst-translit",
(contracted; show full)            lang = "und"
        else
            error("Language code has not been specified. Please pass parameter 1 to the template.")
        end
    end
    
    local i = 2
    local cat = args[i]
 or ""
    
    while cat ~= "" do
do
        if cat ~= "" then
               table.insert(categories, cat)
        end
        
        i = i + 1
        cat = args[i] or ""
    end
    
    return export.format_categories(categories, lang, sort_key)
end

return export