diff --git a/lib/cldr/export/data/calendars/gregorian.rb b/lib/cldr/export/data/calendars/gregorian.rb index 502be55f..59c2f0cb 100644 --- a/lib/cldr/export/data/calendars/gregorian.rb +++ b/lib/cldr/export/data/calendars/gregorian.rb @@ -92,7 +92,10 @@ def eras path = "#{base_path}/#{name}/*" key = name.gsub('era', '').gsub(/s$/, '').downcase.to_sym result[key] = select(path).inject({}) do |ret, node| - type = node.attribute('type').value.to_i rescue 0 + # TODO: Actually resolve alias nodes + # https://github.com/ruby-i18n/ruby-cldr/issues/78 + next {} if node.name == "alias" + type = node.attribute('type').value.to_i ret[type] = node.content ret end