Module:IPA/data/export: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
rm diaCode
 
(4 intermediate revisions by 2 users not shown)
Line 33:
table.insert(data, langData)
if lang.dialects then
langData.dialects = 0
local aliases = {}
for diaCode, dialect in pairs(lang.dialects) do
Line 46 ⟶ 45:
for diaCode, dialect in pairs(lang.dialects) do
if not dialect.aliasOf then
aliaseslocal diaAliases = aliases[diaCode],
if dialect.isVariant then
diaCode = diaCode:lower()
Line 51:
local diaData = {
code = code .. '-' .. diaCode,
diaCodealiases = diaCodediaAliases,
aliases = aliases[diaCode],
name = dialect.name,
text = dialect.text,
Line 61 ⟶ 60:
augmentData(diaData)
table.insert(data, diaData)
langData.dialects = langData.dialects + 1
end
end