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.

Parameters:

  • locales (Array)

    The locales that was requested to load.

  • path (String)

    The path where was request to search for translations.



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