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
-
#initialize(locale, message = nil) ⇒ MissingTranslation
constructor
Creates a new missing translation exception.
Constructor Details
#initialize(locale, message = nil) ⇒ MissingTranslation
Creates a new missing translation exception.
32 33 34 35 |
# File 'lib/lazier/exceptions.rb', line 32 def initialize(locale, = nil) locale, = locale if .nil? super("Unable to load the translation \"#{}\" for the locale \"#{locale}\".") end |