Exception: Lazier::Exceptions::MissingTranslation
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Lazier::Exceptions::MissingTranslation
- Defined in:
- lib/lazier/exceptions.rb
Overview
This exception is raised from I18n if a string is not translatable.
Instance Method Summary (collapse)
-
- (MissingTranslation) initialize(locale, message = nil)
constructor
Creates a new missing translation exception.
Constructor Details
- (MissingTranslation) initialize(locale, message = nil)
Creates a new missing translation exception.
27 28 29 30 |
# File 'lib/lazier/exceptions.rb', line 27 def initialize(locale, = nil) locale, = locale if .nil? super("Unable to load the translation \"#{}\" for the locale \"#{locale}\".") end |