fix error

This commit is contained in:
邱博亞 committed 2022-02-25 14:49:00 +08:00
1 parent aeffcf2630
commit 0d8972ea29
22 files changed
+394 -93

No files matched your search

@@ -18,6 +18,10 @@ wb.add_worksheet(name: "Structure") do |sheet|
row1 << column.key
row2 << column.type + "-#{locale}"
end
when "integer"
row << column.title
row1 << column.key
row2 << column.type
when "editor"
site_in_use_locales.sort.each do |locale|
row << column.title + " - " + t(locale.to_s)
@@ -52,6 +56,8 @@ wb.add_worksheet(name: "Structure") do |sheet|
site_in_use_locales.sort.each do |locale|
row << (column.text_translations[locale.to_s] rescue "")
end
when "integer"
row << column.number
when "editor"
site_in_use_locales.sort.each do |locale|
row << (column.content_translations[locale.to_s] rescue "")