Module:translations: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
(Created page with "local export = {} local m_languages = require("Module:languages") function export.show(frame) local function sort_function(a, b) return a.name < b.name end local translations = {} local title local args = frame:getParent(args) for k, v in pairs(args) do if k == 1 then title = v elseif type(k) == "string" then local language = m_languages.get_by_code(k) table.insert(translations, {name = language.name, display = language.name .. ": " .. v}) end e...")
 
No edit summary
Line 9: Line 9:
local translations = {}
local translations = {}
local title
local title
local args = frame:getParent(args)
local args = frame:getParent().args
for k, v in pairs(args) do
for k, v in pairs(args) do
if k == 1 then
if k == 1 then