Module: Inflect::I18n

Defined in:
lib/inflect/i18n.rb

Overview

Responsible of internationalization logic in the app.

Class Method Summary collapse

Class Method Details

.errors(key) ⇒ String

Returns Translation of the error message.

Parameters:

  • +key+ (Symbol, String)

    The key to error message.

Returns:

  • (String)

    Translation of the error message.


8
9
10
# File 'lib/inflect/i18n.rb', line 8

def self.errors(key)
  Loader::locale['errors'][key.to_s]
end