Exception: Lazier::Exceptions::MissingTranslation

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/lazier/exceptions.rb

Overview

This exception is raised from I18n if no valid translation are found in the specified path.

Instance Method Summary collapse

Constructor Details

#initialize(locales, path) ⇒ MissingTranslation

Creates a new missing translation exception.



20
21
22
# File 'lib/lazier/exceptions.rb', line 20

def initialize(locales, path)
  super("Unable to load any of the following translation in #{path}: #{locales.join(", ")}.")
end