class ActiveSupport::NumberHelper::NumberToHumanConverter

def determine_unit(units, exponent)

def determine_unit(units, exponent)
  exp = DECIMAL_UNITS[exponent]
  case units
  when Hash
    units[exp] || ""
  when String, Symbol
    I18n.translate("#{units}.#{exp}", locale: options[:locale], count: number.to_i)
  else
    translate_in_locale("human.decimal_units.units.#{exp}", count: number.to_i)
  end
end