มอดูล:languages/by name
- มอดูลนี้ขาดหน้าย่อยแสดงเอกสารการใช้งาน กรุณาสร้างขึ้น
- ลิงก์ที่เป็นประโยชน์: หน้าราก • หน้าย่อยของหน้าราก • การรวมมา • มอดูลทดสอบ
local export = {}
for code, data in pairs(require("Module:languages/data/all")) do
export[data[1]] = code
if data.otherNames then
for i, otherName in pairs(data.otherNames) do
if not export[otherName] then
export[otherName] = code
end
end
end
if data.aliases then
for i, alias in pairs(data.aliases) do
if not export[alias] then
export[alias] = code
end
end
end
end
return export