module Inflect::I18n

Responsible of internationalization logic in the app.

Public Class Methods

errors(key) click to toggle source

Returns error message inside the locale file. @param key [Symbol, String] The key to error message. @return [String] Translation of the error message.

# File lib/inflect/i18n.rb, line 9
def self.errors(key)
  Loader::locale['errors'][key.to_s]
end