Jump to content

Module:Triple tab Prayer/label text

From wikishia

Documentation for this module may be created at Module:Triple tab Prayer/label text/doc

local p = {}

function p.Text(frame)
    local lang = frame.args[1] or mw.language.getContentLanguage():getCode()
    local translations = {
        ar = "نص",
        za = "نص",
        bn = "টেক্সট",
        de = "Text",
        en = "Text",
        es = "Texto",
        fa = "متن",
        fr = "Texte",
        ha = "Rubutu",
        hi = "पाठ",
        id = "Teks",
        it = "Testo",
        my = "စာသား",
        ps = "متن",
        pt = "Texto",
        ru = "Текст",
        sw = "Maandishi",
        tg = "Матн",
        th = "ข้อความ",
        tr = "Metin",
        ur = "متن",
        zh = "文字"
    }

    -- Default to English if the language is not in the list
    local text = translations[lang] or translations["{{CONTENTLANGUAGE}}"]

    return text
end

return p
--[[Category:Template:Triple tab Prayer]]