Skip to content

Commit

Permalink
Remove type default in era
Browse files Browse the repository at this point in the history
`type` is a required attribute of `era` tags.
  • Loading branch information
movermeyer committed Nov 13, 2021
1 parent aecaef0 commit 9a1d084
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cldr/export/data/calendars/gregorian.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def eras
path = "#{base_path}/#{name}/*"
key = name.gsub('era', '').gsub(/s$/, '').downcase.to_sym
result[key] = select(path).inject({}) do |ret, node|
next if node.name == "alias" # TODO: Actually resolve alias nodes
type = node.attribute('type').value.to_i rescue 0
ret[type] = node.content
ret
Expand Down

0 comments on commit 9a1d084

Please sign in to comment.