class ActiveSupport::NumberHelper::NumberToHumanConverter
def unit_exponents(units)
def unit_exponents(units) case units when Hash units when String, Symbol I18n.translate(units.to_s, locale: options[:locale], raise: true) when nil translate_in_locale("human.decimal_units.units", raise: true) else raise ArgumentError, ":units must be a Hash or String translation scope." end.keys.map { |e_name| INVERTED_DECIMAL_UNITS[e_name] }.sort_by(&:-@) end