method
i18n_format_options
v7.1.3.2 -
Show latest stable
- Class:
ActiveSupport::NumberHelper::NumberConverter
i18n_format_options()private
No documentation available.
# File activesupport/lib/active_support/number_helper/number_converter.rb, line 155
def i18n_format_options
locale = opts[:locale]
options = I18n.translate(:'number.format', locale: locale, default: {}).dup
if namespace
options.merge!(I18n.translate(:"number.#{namespace}.format", locale: locale, default: {}))
end
options
end