Module: L10n

Defined in:
lib/l10n.rb,
lib/l10n/forms.rb,
lib/l10n/request.rb,
lib/l10n/version.rb,
lib/l10n/inflections.rb,
lib/l10n/i18n_extensions.rb,
lib/l10n/column_translation.rb,
lib/l10n/translation_validator.rb,
lib/l10n/numericality_validator.rb,
lib/l10n/core_extensions/object_ext.rb,
lib/l10n/core_extensions/string_ext.rb,
lib/l10n/core_extensions/symbol_ext.rb,
lib/l10n/numeric_column_conversions.rb,
lib/l10n/core_extensions/numeric_ext.rb,
lib/l10n/core_extensions/date_time_ext.rb

Overview

files = Dir[File.join(File.dirname(__FILE__), ‘locales/*.yml’)] I18n.load_path.concat(files)

Defined Under Namespace

Modules: ColumnTranslation, CoreExtensions, Forms, I18nExtensions, Inflections, NumericColumnConversions, NumericalityValidatorExt, Request Classes: Railtie, TranslationValidator

Constant Summary collapse

VERSION =
'2.2.1'

Class Method Summary collapse

Class Method Details

.number_to_rounded(number, options = {}) ⇒ Object

def available_language_codes

i18n_available_locales.map { |i18n_locale| normalize_language_code(i18n_locale) }.uniq

end



51
52
53
# File 'lib/l10n.rb', line 51

def number_to_rounded(number, options = {})
  ActiveSupport::NumberHelper.number_to_rounded(number, options)
end