ruby-i18n/ruby-cldr

Stop defaulting values incorrectly

Closed this issue · 0 comments

Cldr::Export::Data::Numbers#unit uses a default not present in upstream CLDR:

def unit
@unit ||= select("numbers/currencyFormats/unitPattern").inject({}) do |result, node|
count = node.attribute('count').value rescue 'one'
result[count] = node.content
result
end
end

There are two other places in Cldr::Export::Data::Calendars::Gregorian